Vidyalelo
Ruby Programming · Q67

Control Structures in Ruby

Programming · Ruby Programming · question 67

Q67

What is the output of the given code? a=true b=false if a && b puts "False" elsif a || b puts "True" else puts "neither true nor false" end

A.
false
B.
true
Answer
C.
neither true nor false
D.
none of the mentioned

Answer: Option B

Solution

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