Examveda
Examveda

What is the purpose of the case statement in Ruby?

A. To define a class

B. To handle multiple conditions with one expression

C. To declare a variable

D. To perform mathematical calculations

Answer: Option B


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

Join The Discussion

Related Questions on Control Structures in Ruby