Kotlin Program - Study Mode

[#146] A View can contain any number of View or ViewGroup as its children. True or false?
Correct Answer

(B) False, View can have exactly 1 child.

[#147] Which of the following visibility attribute values, if set on a view, makes it so the view is hidden and does not take up any space in the layout?
Correct Answer

(C) gone

[#148] Which one of the following statements is true about Button views?
Correct Answer

(C) Button views are clickable, and on click, the attached click listener performs an action.

[#149] How do you declare a String in Kotlin?
Correct Answer

(A) val str: String = "Hello, World!"

[#150] In Kotlin, how do you compare two Strings for equality?
Correct Answer

(C) Both A and B