Vidyalelo
Ruby Programming · Q7

Control Structures in Ruby

Programming · Ruby Programming · question 7

Q7

What does the break keyword do in a loop in Ruby?

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

Answer: Option B

Solution

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