Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

What is the output of the given code?
hungry=false
unless hungry
print “Not hungry”
else
print “Hungry”
end
a) Not hungry
b) Hungry
c) Syntax error
d) None of the mentioned

Answer: a
Explanation: As hungry is initialized to false hence the unless condition is executed.

Join The Discussion