Vidyalelo
Computer Science · Q75

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 75

Q75

In Kotlin, what is the main purpose of the return keyword?

A.
To declare a function
B.
To create a loop
C.
To terminate a function execution and return a value
Answer
D.
To define a class

Answer: Option C

Solution

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