Vidyalelo
Ruby Programming · Q72

Control Structures in Ruby

Programming · Ruby Programming · question 72

Q72

What is the output of the given code? hungry=false unless hungry print "Not hungry" else print "Hungry" end

A.
Not hungry
Answer
B.
Hungry
C.
Syntax error
D.
None of the mentioned

Answer: Option A

Solution

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