Vidyalelo
Ruby Programming · Q25

Blocks and Procs in Ruby

Programming · Ruby Programming · question 25

Q25

What is the purpose of using the next keyword within a block in Ruby?

A.
To skip the rest of the block and move to the next iteration
Answer
B.
To exit the block and return to the caller
C.
To execute the block with different parameters
D.
None of the above

Answer: Option A

Solution

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