Examveda

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

A. hungry

B. Nil

C. Error

D. None of the mentioned

Answer: Option A


This Question Belongs to Ruby Programming >> Control Structures In Ruby

Join The Discussion

Related Questions on Control Structures in Ruby