Examveda

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

A. Exits only the inner loop

B. Exits only the outer loop

C. Exits all loops

D. Skips the current iteration of the loop

Answer: Option A


This Question Belongs to Ruby Programming >> Control Structures In Ruby

Join The Discussion

Related Questions on Control Structures in Ruby