val greet = () -> println("Hello") matches the correct lambda syntax. val greet = fun() { println("Hello") } is a named function expression, B and D are invalid syntax.
Final Answer:
val greet = () -> println("Hello") -> Option D
Quick Check:
Lambda syntax = () -> expression [OK]
Quick Trick:Look for arrow notation () -> for lambdas [OK]
Common Mistakes:
MISTAKES
Using 'function()' keyword which doesn't exist
Confusing named function with lambda syntax
Using 'lambda' keyword which is invalid
Master "Functions" in Kotlin
9 interactive learning modes - each teaches the same concept differently