Kotlin Program - Study Mode

[#96] How can you create a variable with the floating number 2.8?
Correct Answer

(B) val num = 2.8

[#97] How can you create a range of numbers between 5 and 15 in Kotlin?
Correct Answer

(D) for (x in 5..15)

[#98] How to access the elements of an array in Kotlin?
Correct Answer

(B) array[index]

[#99] The actual function for getting the string length in Kotlin language is?
Correct Answer

(C) str.length

[#100] Identify the bits allocated in Kotlin for Float data type
Correct Answer

(A) 32