Vidyalelo
Ruby Programming · Q26

Control Structures in Ruby

Programming · Ruby Programming · question 26

Q26

What does the `retry` keyword do when used within a loop in Ruby?

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

Answer: Option B

Solution

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