πŸ“Š Ruby
Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Not hungry

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
204
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate