Vidyalelo
Ruby Programming · Q31

Control Structures in Ruby

Programming · Ruby Programming · question 31

Q31

In Ruby, what is the purpose of the `redo` keyword?

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

Answer: Option A

Solution

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