Vidyalelo
Ruby Programming · Q65

Control Structures in Ruby

Programming · Ruby Programming · question 65

Q65

What is the output of the given code? variable = false if variable print "false" elsif !variable print "true" end

A.
False
B.
True
Answer
C.
Syntax error
D.
None of the mentioned

Answer: Option B

Solution

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