Vidyalelo
Computer Science · Q136

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 136

Q136

What is the difference between a function and a lambda expression in Kotlin?

A.
A function is a named block of code, a lambda is anonymous
Answer
B.
A function can take arguments, a lambda cannot
C.
A function returns a value using return, a lambda returns the last expression
D.
A function can be called using its name, a lambda must be passed as a parameter

Answer: Option A

Solution

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