Kotlin Quiz
Check what you have learned in this Kotlin tutorial with these questions.
How the Quiz Works
- There are 8 questions covering all the lessons
- Choose one answer for each question
- After you answer, a short explanation tells you why
- If you get one wrong, go back to that lesson and read it again
Quiz Questions
Exercise
Which keyword makes a read-only variable?
Exercise
Which type can hold the value null?
Exercise
What does println(10 / 4) print?
Exercise
What does the Elvis operator ?: do?
Exercise
Which Kotlin keyword replaces long else if chains and the switch statement?
Exercise
How many times does for (i in 1..4) run?
Exercise
What does listOf(1, 2, 3).map { it * 10 } return?
Exercise
What does the word data in data class give you?
What Next?
Well done on finishing the Kotlin tutorial. Your next step is Android development with Android Studio and Jetpack Compose, where you will use everything you learned here to build real apps.
Keep practising: write a small program every day, like a marks calculator or a shopping bill, to make Kotlin feel natural.
