πŸ“Š Ruby
Q. What is the output of the code?
variable="true".length
if variable
puts "true"
else
puts "false"
end
  • (A) False
  • (B) True
  • (C) Syntax error
  • (D) 4
πŸ’¬ Discuss
βœ… Correct Answer: (B) True

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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