Vidyalelo
Computer Science · Q288

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 288

Q288

What is to in the example below: val test = 33 to 42

A.
A Kotlin keyword to create a Pair(33, 42)
B.
A syntax error
C.
A Kotlin keyword to create a Range from 33 to 42
D.
An infix extension function creating a Pair(33, 42)
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board