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

Which loop iterates over a range of integers `1..10`?

In this round
  1. Which loop iterates over a range of integers `1..10`?
  2. How does Kotlin's `when` differ from Java's `switch`?
  3. What does `object MyService { … }` declare?
  4. What is a `companion object`?
  5. What is an `init` block?
  6. What is the `!!` operator?
  7. Which auto-generated members does `data class` provide?
  8. What is the difference between `val` and `var` in Kotlin?
  9. What does the Elvis operator `?:` do?
  10. What is the result type of `if/else` used as an expression?
  11. What is the difference between `let` and `apply` scope functions?
  12. What is an extension function?
Gaps to close?
Read the curated Kotlin notes — core concepts, patterns, interview prep.
Kotlin notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web