πŸ“Š Ruby
Q. What is the output of the given code?
a=true
b=false
if a && b
puts "False"
elsif a || b
puts "True"
else
puts "neither true nor false"
end
  • (A) false
  • (B) 102
  • (C) neither true nor false
  • (D) none of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) 102

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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