All quizzes
Free quiz · 50 questions in the bank

Kotlin quiz

Test your Kotlin knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

What is an extension function?

In this round
  1. What is an extension function?
  2. What does the `lazy` delegate do?
  3. Which loop iterates over a range of integers `1..10`?
  4. How do you implement an interface in Kotlin?
  5. What is the difference between `List` and `MutableList`?
  6. What does `val ages = users.map { it.age }` produce?
  7. What is the `!!` operator?
  8. What does this return: `listOf(1, 2, 3).map { it * 2 }`?
  9. What is the result type of `if/else` used as an expression?
  10. What is the difference between `let` and `apply` scope functions?
  11. What is the difference between `==` and `===` in Kotlin?
  12. Why does this fail to compile: `var name: String = null`?
Gaps to close?
Read the curated Kotlin notes — core concepts, patterns, interview prep.
Kotlin notes

More quizzes

.NETAccessibilityAgile MethodologyAlertmanagerAlgorithmsAndroid