Sample Questions
 


1. What is the return type for function - fun sum(a: Int, b: Int) = a + b
A. Double
B. Long
C. Float
D. None of these

2. What is the applicable range of values for kotlin.UByte
A. 0 to 255
B. 0 to 65535
C. 0 to 2^32 - 1
D. 0 to 2^64 - 1

3. Which character is used to provide default values to function parameters
A. :
B. +
C. =
D. -

4. How many bits does Char data type in Kotlin, is composed of
A. 8 bit
B. 16 bit
C. 32 bit
D. None of these

5. What is the data type of parameter of assert function in Kotlin
A. Double
B. Long
C. Float
D. None of these

Answers:      1 (D), 2 (A), 3 (C), 4 (B), 5 (D)


Apply for Certification

https://www.vskills.in/certification/kotlin-developer