Vidyalelo
Ruby Programming · Q47

Control Structures in Ruby

Programming · Ruby Programming · question 47

Q47

What is the use of else statement?

A.
When the if condition is false then the next else condition will get executed
B.
When the if condition is false then the elsif condition will get executed
C.
When the if condition is false and if else condition is true then only it will get executed
Answer
D.
None of the mentioned

Answer: Option C

Solution

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