Vidyalelo
Ruby Programming · Q53

Control Structures in Ruby

Programming · Ruby Programming · question 53

Q53

What is the output of the code? variable=true if !variable puts "true" else puts "false" end

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

Answer: Option A

Solution

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