Vidyalelo
Ruby Programming · Q10

Control Structures in Ruby

Programming · Ruby Programming · question 10

Q10

What is the output of the following code snippet? x = 10 unless x > 15 puts "Hello" end

A.
Hello
Answer
B.
No output
C.
Error
D.
nil

Answer: Option A

Solution

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