Question Bank
3705 approved questions from the community
What is the difference between 'const val' and 'val' in Kotlin?
What is the purpose of '@JvmStatic' annotation in Kotlin?
What keyword is used to indicate inheritance in Kotlin?
What keyword is required to make a class inheritable in Kotlin?
What is the difference between abstract classes and interfaces in Kotlin?
What is a lambda expression in Kotlin?
What is the syntax for a simple lambda expression in Kotlin?
What does the 'it' keyword represent in Kotlin lambda expressions?
What is a higher-order function in Kotlin?
What is the purpose of the 'let' function in Kotlin?
What is the difference between 'apply' and 'also' scope functions in Kotlin?
What keyword is used to define a range in Kotlin?
How do you iterate over a range in Kotlin?
What function is used to iterate in reverse order in Kotlin?
What does the 'step' function do in Kotlin ranges?
What is the difference between 'until' and '..' in Kotlin ranges?
How do you create an immutable list in Kotlin?
What function creates a mutable list in Kotlin?
What is the difference between 'map' and 'flatMap' in Kotlin?
What does the 'filter' function do in Kotlin collections?