M

Mr. Dubey • 87.94K Points
Coach

Q. What is the output of the given code?
print "What's your address"
city,state,pin=gets.chomp,gets.chomp,gets.chomp
puts "Iam from #{city} city, #{state} state, pincode: #{pin} "

  • (A) Error in compilation
  • (B) Substituting string functions
  • (C) What's your address? Chennai Tamilnadu 600048 Iam from Chennai city, Tamilnadu state, pincode: 600048
  • (D) None of the mentioned
  • Correct Answer - Option(C)
  • Views: 76
  • 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.

Be the first to start discuss.


Question analytics