Vidyalelo
Ruby Programming · Q40

Control Structures in Ruby

Programming · Ruby Programming · question 40

Q40

What is the output of the code? if 11<2 print "Eleven is less than two" end print "11 is greater"

A.
11 is greater
Answer
B.
Eleven is less than two
C.
Eleven is less than two 11 is greater
D.
None of the mentioned

Answer: Option A

Solution

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