Vidyalelo
Computer Science · Q208

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 208

Q208

How can you create a range of numbers between 5 and 15 in Kotlin?

A.
for (x in 5 to 15)
B.
for (5..15)
C.
for (5 to 15)
D.
for (x in 5..15)
Answer

Answer: Option D

Solution

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