Vidyalelo
Ruby Programming · Q3

Blocks and Procs in Ruby

Programming · Ruby Programming · question 3

Q3

What is a proc in Ruby?

A.
A method that takes no arguments
B.
A predefined set of instructions
C.
A block that has been converted into an object
Answer
D.
A data structure for storing key-value pairs

Answer: Option C

Solution

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