Vidyalelo
Ruby Programming · Q7

Blocks and Procs in Ruby

Programming · Ruby Programming · question 7

Q7

What is a lambda in Ruby?

A.
A type of anonymous function similar to a proc, but with stricter argument checking
Answer
B.
A block of code that is passed to methods as an argument
C.
A predefined set of instructions
D.
A method that takes no arguments

Answer: Option A

Solution

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