Vidyalelo
Ruby Programming · Q27

Blocks and Procs in Ruby

Programming · Ruby Programming · question 27

Q27

What does the arity method return for a proc or lambda in Ruby?

A.
The number of optional arguments for the proc or lambda
B.
The total number of arguments for the proc or lambda
C.
The number of required arguments for the proc or lambda
Answer
D.
None of the above

Answer: Option C

Solution

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