Question Bank

1899 approved questions from the community

What is a Flow in Kotlin coroutines?

MEDIUM
SINGLE CHOICE
35s
Kotlin
by Mohamed

Properties declared with 'lazy' must be declared as 'val' in Kotlin.

MEDIUM
TRUE FALSE
25s
Kotlin
by Mohamed

For a function to use 'tailrec', the recursive call must be the last operation in the function.

MEDIUM
TRUE FALSE
25s
Kotlin
by Mohamed

What is the purpose of the 'lazy' delegate in Kotlin?

MEDIUM
SINGLE CHOICE
35s
Kotlin
by Mohamed

What is the 'noinline' modifier used for in Kotlin?

MEDIUM
SINGLE CHOICE
35s
Kotlin
by Mohamed

'Any?' is the supertype of all types including nullable types in Kotlin.

MEDIUM
TRUE FALSE
25s
Kotlin
by Mohamed

Kotlin requires explicit 'throws' declarations for checked exceptions.

MEDIUM
TRUE FALSE
25s
Kotlin
by Mohamed

What is the purpose of the 'const' modifier in Kotlin?

MEDIUM
SINGLE CHOICE
30s
Kotlin
by Mohamed

What is the purpose of '@JvmStatic' annotation in Kotlin?

MEDIUM
SINGLE CHOICE
35s
Kotlin
by Mohamed

What does '@JvmOverloads' annotation do in Kotlin?

MEDIUM
SINGLE CHOICE
35s
Kotlin
by Mohamed

What are the requirements for a property to be marked as 'const' in Kotlin?

MEDIUM
MULTIPLE CHOICE
40s
Kotlin
by Mohamed

Which operators can be overloaded in Kotlin?

MEDIUM
MULTIPLE CHOICE
40s
Kotlin
by Mohamed

What are the requirements for a function to be marked as 'infix' in Kotlin?

MEDIUM
MULTIPLE CHOICE
40s
Kotlin
by Mohamed

What are the benefits of inline functions in Kotlin?

MEDIUM
MULTIPLE CHOICE
40s
Kotlin
by Mohamed

Which are built-in property delegates in Kotlin?

MEDIUM
MULTIPLE CHOICE
40s
Kotlin
by Mohamed

What are the requirements for using 'lateinit' in Kotlin?

MEDIUM
MULTIPLE CHOICE
40s
Kotlin
by Mohamed

Which of the following are coroutine builders in Kotlin?

MEDIUM
MULTIPLE CHOICE
40s
Kotlin
by Mohamed

Which of the following are valid ways to create a map in Kotlin?

MEDIUM
MULTIPLE CHOICE
40s
Kotlin
by Mohamed

Which operations are available on mutable collections but not on read-only collections in Kotlin?

MEDIUM
MULTIPLE CHOICE
40s
Kotlin
by Mohamed

Which operators are part of Kotlin's null safety features?

MEDIUM
MULTIPLE CHOICE
40s
Kotlin
by Mohamed
PreviousPage 65 of 95Next