Vidyalelo
Computer Science · Q42

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 42

Q42

What is the purpose of the when expression in Kotlin?

A.
To replace if-else statements
B.
To perform pattern matching on an expression
Answer
C.
To loop over a collection of elements
D.
To perform arithmetic operations

Answer: Option B

Solution

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