Question Bank

1085 approved questions from the community

What is a companion object in Kotlin?

EASY
SINGLE CHOICE
30s
Kotlin
by Mohamed

How do you declare a primary constructor in Kotlin?

EASY
SINGLE CHOICE
25s
Kotlin
by Mohamed

What is an operator function in Kotlin?

EASY
SINGLE CHOICE
30s
Kotlin
by Mohamed

What keyword is used to create a type alias in Kotlin?

EASY
SINGLE CHOICE
20s
Kotlin
by Mohamed

What keyword is used to define a range in Kotlin?

EASY
SINGLE CHOICE
20s
Kotlin
by Mohamed

Which of the following are valid collection types in Kotlin?

EASY
MULTIPLE CHOICE
35s
Kotlin
by Mohamed

What is the purpose of the 'let' function in Kotlin?

EASY
SINGLE CHOICE
30s
Kotlin
by Mohamed

What is the 'Any' type in Kotlin?

EASY
SINGLE CHOICE
25s
Kotlin
by Mohamed

What does the 'copy()' function do in Kotlin data classes?

EASY
SINGLE CHOICE
30s
Kotlin
by Mohamed

How do you iterate over a range in Kotlin?

EASY
SINGLE CHOICE
25s
Kotlin
by Mohamed

What is the difference between 'until' and '..' in Kotlin ranges?

EASY
SINGLE CHOICE
30s
Kotlin
by Mohamed

What is the syntax for a simple lambda expression in Kotlin?

EASY
SINGLE CHOICE
25s
Kotlin
by Mohamed

How do you create an immutable list in Kotlin?

EASY
SINGLE CHOICE
25s
Kotlin
by Mohamed

What keyword is used to declare a data class in Kotlin?

EASY
SINGLE CHOICE
20s
Kotlin
by Mohamed

What function creates a mutable list in Kotlin?

EASY
SINGLE CHOICE
20s
Kotlin
by Mohamed

What operator is used to access elements in a Kotlin map?

EASY
SINGLE CHOICE
20s
Kotlin
by Mohamed

What does try...catch do?

EASY
SINGLE CHOICE
25s
Javascript
by Mohamed

Which method prevents the default behavior of an event?

EASY
SINGLE CHOICE
25s
Javascript
by Mohamed

Which of the following are differences between Map and plain objects? (Select all that apply)

EASY
MULTIPLE CHOICE
45s
Javascript
by Mohamed

Which storage mechanisms are available in browsers? (Select all that apply)

EASY
MULTIPLE CHOICE
35s
Javascript
by Mohamed
PreviousPage 37 of 55Next