Examveda

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: Option D


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

Join The Discussion

Related Questions on Control Structures in Ruby