Vidyalelo
Ruby Programming · Q12

Control Structures in Ruby

Programming · Ruby Programming · question 12

Q12

In Ruby, what does the `elsif` keyword allow you to do?

A.
Add a new class to a module
B.
Define an instance method within a class
C.
Add an else-if condition to an if statement
Answer
D.
Create a new variable

Answer: Option C

Solution

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