Vidyalelo
Ruby Programming · Q15

Control Structures in Ruby

Programming · Ruby Programming · question 15

Q15

What does the `retry` keyword do in Ruby?

A.
Repeats the current iteration of the loop
B.
Exits the loop
C.
Restarts the loop from the beginning
Answer
D.
Restarts the current block of code from the beginning

Answer: Option C

Solution

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