Vidyalelo
Computer Science · Q47

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 47

Q47

What is the purpose of the lateinit keyword in Kotlin?

A.
To declare a variable that can be null
B.
To declare a variable that must be initialized before use
Answer
C.
To declare a variable that is initialized lazily
D.
To declare a variable that can be re-assigned

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board