Vidyalelo
Ruby Programming · Q23

Control Structures in Ruby

Programming · Ruby Programming · question 23

Q23

In Ruby, what does the `break` keyword do when used within nested loops?

A.
Exits only the inner loop
Answer
B.
Exits only the outer loop
C.
Exits all loops
D.
Skips the current iteration of the loop

Answer: Option A

Solution

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