2: Kotlin basics

Question 1

Which of the following declares an unchangeable list of strings?

Question 2

What will be the output of the following code? for (i in 3..8 step 2) print(i)

Question 3

What is the purpose of the question mark in this code? var rocks: Int? = 3

Last updated