Kotlin Program - Study Mode

[#106] What does ?. operator do in Kotlin?
Correct Answer

(C) Null-safe member access

[#107] The value of a string variable must be surrounded by single quotes.
Correct Answer

(A) False

[#108] What is the default visibility modifier for functions in Kotlin?
Correct Answer

(A) public

[#109] Which keyword is used to create a singleton in Kotlin?
Correct Answer

(D) object

[#110] In a ConstraintLayout, which of the following choices describes the constraints needed to keep a view in place during runtime?
Correct Answer

(C) At least one horizontal and one vertical constraint.