1.
The elsif statement can add many alternatives to if/else statements.
A
True
B
False
Answer and explanation
Correct Answer: A — True
We can add many conditions between if/else statements using elsif conditional statement.
ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
3 practice sets · Page 1 of 1
The elsif statement can add many alternatives to if/else statements.
True
False
We can add many conditions between if/else statements using elsif conditional statement.
The elsif conditional statement is written with an expression.
True
False
The syntax of elsif conditional statement is elsif with an expression.
Which of the following is valid conditional statement in Ruby?
elseif
elsif
else if
elseiff
We use elsif conditional statement in Ruby.