M

Mr. Dubey • 100.28K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 103
  • Filed under category Ruby

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics