Examveda

What is a lambda in Ruby?

A. A block of code that is executed within the context of a specific object

B. An anonymous function that can be passed around like an object

C. A closure that captures its surrounding scope and can be passed around like an object

D. None of the above

Answer: Option B


This Question Belongs to Ruby Programming >> Advanced Topics In Ruby

Join The Discussion

Related Questions on Advanced Topics in Ruby