Vidyalelo
Ruby Programming · Q78

Control Structures in Ruby

Programming · Ruby Programming · question 78

Q78

What is the output of the given code? x="ruby".length y="language".length puts x,y unless x>y print "length of x is less than that of y" end

A.
4
8
B.
4
8
length of x is less than that of y
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