Examveda
Examveda

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

A. Continues to the next iteration of the loop

B. Exits the loop

C. Skips the current iteration of the loop

D. Resets the loop counter to 0

Answer: Option B


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

Join The Discussion

Related Questions on Control Structures in Ruby