Question Bank
1085 approved questions from the community
What is a companion object in Kotlin?
How do you declare a primary constructor in Kotlin?
What is an operator function in Kotlin?
What keyword is used to create a type alias in Kotlin?
What keyword is used to define a range in Kotlin?
Which of the following are valid collection types in Kotlin?
What is the purpose of the 'let' function in Kotlin?
What is the 'Any' type in Kotlin?
What does the 'copy()' function do in Kotlin data classes?
How do you iterate over a range in Kotlin?
What is the difference between 'until' and '..' in Kotlin ranges?
What is the syntax for a simple lambda expression in Kotlin?
How do you create an immutable list in Kotlin?
What keyword is used to declare a data class in Kotlin?
What function creates a mutable list in Kotlin?
What operator is used to access elements in a Kotlin map?
What does try...catch do?
Which method prevents the default behavior of an event?
Which of the following are differences between Map and plain objects? (Select all that apply)
Which storage mechanisms are available in browsers? (Select all that apply)