Vidyalelo
Ruby Programming · Q9

Control Structures in Ruby

Programming · Ruby Programming · question 9

Q9

What is the purpose of the redo keyword in Ruby?

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