Kotlin Program - Study Mode
[#156] How do you declare a nullable variable in Kotlin?
Correct Answer
(A) var name: String?
[#157] How do you define a function in Kotlin?
Correct Answer
(A) fun myFunction() {}
[#158] How do you start writing an if statement in Kotlin?
Correct Answer
(B) if (x > y)
[#159] To create an array in Kotlin, use
Correct Answer
(A) The arrayOf() function
[#160] Which feature in Kotlin helps to prevent NullPointerExceptions?
Correct Answer
(A) Safe Call Operator (?.)