Vidyalelo
Computer Science · Q56

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 56

Q56

What is the purpose of the let() function in Kotlin?

A.
To create a new instance of a class
B.
To modify the properties of an existing instance of a class
C.
To perform mathematical calculations
D.
To perform a null-check and execute code only if the value is not null
Answer

Answer: Option D

Solution

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