Vidyalelo
Ruby Programming · Q4

Control Structures in Ruby

Programming · Ruby Programming · question 4

Q4

What is the purpose of the case statement in Ruby?

A.
To define a class
B.
To handle multiple conditions with one expression
Answer
C.
To declare a variable
D.
To perform mathematical calculations

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board