Examveda

What is the purpose of the loop keyword in Ruby?

A. To iterate over a collection of elements

B. To create an infinite loop

C. To perform a comparison operation

D. To exit a loop based on a condition

Answer: Option B


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

Join The Discussion

Related Questions on Control Structures in Ruby