πŸ“Š Ruby
Q. What is the output of the given code?
x=8
y=10
unless x>y
puts "x is less than y"
end
unless x>y+1
puts "x is less than y+1"
end
  • (A) x is less than y
  • (B) 4 8 length of x is less than that of y
  • (C) x is less than y x is less than y+1
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) x is less than y x is less than y+1

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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