Vidyalelo
Ruby Programming · Q22

Advanced Topics in Ruby

Programming · Ruby Programming · question 22

Q22

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
Answer
C.
A closure that captures its surrounding scope and can be passed around like an object
D.
None of the above

Answer: Option B

Solution

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