Vidyalelo
Ruby Programming · Q105

Control Structures in Ruby

Programming · Ruby Programming · question 105

Q105

What is the output of the given code? a="hungry" until !a puts "hungry" a=!a end

A.
hungry
Answer
B.
Nil
C.
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