Examveda

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

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


This Question Belongs to Computer Science >> Kotlin Program

Join The Discussion

Related Questions on Kotlin Program

What is Kotlin?

A. A new version of Java.

B. A JavaScript framework.

C. A statically-typed programming language for the JVM, Android, and browser.

D. A database management system.