Vidyalelo
Ruby Programming · Q34

Control Structures in Ruby

Programming · Ruby Programming · question 34

Q34

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

A.
Specifies the code block to execute if a condition is true
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
Answer
D.
Specifies the code block to execute in all cases

Answer: Option C

Solution

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