Kotlin Program - Study Mode

[#186] Which of the following features exist in Kotlin but not in Java language?
Correct Answer

(D) All the above options

[#187] You can create the emulator to simulate the configuration of a specific kind of Android device using a tool like . . . . . . . .
Correct Answer

(A) AVD Manager

[#188] What is the type of arr in the following code? val arr = arrayof(1, 2, 3)
Correct Answer

(B) Array<Int>

[#189] From the Supervisor subclass, how do you call the Employee class's display() method? open class Employee(){
open fun display() = println("Employee display()")
}
class Supervisor : Employee() {
override fun display() {
println("Supervisor display()")
}
}
Correct Answer

(C) super.display()

[#190] This code does not print any output to the console. What is wrong? firstName?.let {
println("Greeting $firstname!")
}
Correct Answer

(B) firstName is equal to null