Kotlin Program - Study Mode

[#211] How can we write a multi-line comment in Kotlin?
Correct Answer

(A) /* Comment */

[#212] What is the purpose of the let() function in Kotlin?
Correct Answer

(D) To perform a null-check and execute code only if the value is not null

[#213] Which of the following is true about Kotlin's data classes?
Correct Answer

(D) They must implement the equals() and hashCode() methods

[#214] What is the purpose of the inline keyword in Kotlin?
Correct Answer

(C) To allow a function to be inlined at the call site

[#215] What is the default inheritance of classes in Kotlin?
Correct Answer

(A) final