Vidyalelo
Ruby Programming · Q54

Control Structures in Ruby

Programming · Ruby Programming · question 54

Q54

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

A.
False
B.
True
Answer
C.
Syntax error
D.
4

Answer: Option B

Solution

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