Kotlin Study Guide 2026
Everything you need to pass the Kotlin exam in one place: the exam format, every topic to study, real practice questions with explanations, flashcards, and full-length practice tests. Free, no sign-up needed.
📋 Kotlin Exam Format at a Glance
📚 Kotlin Topics to Study (38)
✍️ Sample Kotlin Questions & Answers
1. How do you define a property with a custom getter in Kotlin?
Kotlin allows defining a custom getter by writing `get() = ...` immediately after the property declaration.
2. Which modifier makes a class member accessible only within the same file in Kotlin?
In Kotlin, `private` at the top level restricts visibility to the file in which it is declared.
3. What does `zip` do in Kotlin collections?
`zip` combines two collections element by element into a `List>`, stopping at the shorter collection's length.
4. What does the `any` function do on a Kotlin collection?
`any` returns `true` if at least one element in the collection satisfies the given predicate.
5. Which keyword is used to define a constant at the top level in Kotlin?
`const val` declares a compile-time constant in Kotlin, which must be a primitive type or String at the top level or inside an object.
6. Which built-in higher-order function applies a transformation to each element of a collection?
`map` applies a given transformation function to each element of a collection and returns a new list of results.