Vidyalelo
Ruby Programming · Q35

Control Structures in Ruby

Programming · Ruby Programming · question 35

Q35

In Ruby, what does the `elsif` keyword do?

A.
Specifies the code block to execute if a condition is true
Answer
B.
Specifies the code block to execute if a condition is false
C.
Specifies the code block to execute if no other conditions are met
D.
Specifies the code block to execute in all cases

Answer: Option A

Solution

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