Vidyalelo
Ruby Programming · Q18

Control Structures in Ruby

Programming · Ruby Programming · question 18

Q18

What is the purpose of the next keyword in a loop in Ruby?

A.
Exits the loop
B.
Skips the current iteration of the loop
C.
Resets the loop counter to 0
D.
Continues to the next iteration of the loop
Answer

Answer: Option D

Solution

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