πŸ“Š Ruby
Q. What is the output of the given code?
if 79>78
puts "True".upcase
if 9>8
puts "True".Upcase
if 7==7
puts "equal".downcase
end
end
end
  • (A) True
  • (B) Error
  • (C) True,error
  • (D) TRUE Undefined method 'Upcase' for String
πŸ’¬ Discuss
βœ… Correct Answer: (D) TRUE Undefined method 'Upcase' for String

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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