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
Related Questions on Kotlin Program
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.
Which platform does Kotlin primarily target?
A. Python Bytecode
B. JavaScript
C. JVM (Java Virtual Machine) Bytecode
D. PHP

Join The Discussion