Kotlin Program - Study Mode

[#161] How do you start writing a while loop in Kotlin?
Correct Answer

(B) while (x < y)

[#162] How do you declare an array of integers in Kotlin?
Correct Answer

(A) val numbers = arrayOf(1, 2, 3)

[#163] Which keyword is used to declare a function?
Correct Answer

(D) fun

[#164] Which keyword is used to return a value inside a function?
Correct Answer

(C) return

[#165] Which statement is used to stop a loop?
Correct Answer

(D) break