94.
What is the output of the given code?
print "what's your first name?"
   first_name=gets.chomp
   a=first_name.capitalize
   "a".reverse
   puts"My name is #{a}"

98.
Why is the library function 'puts'used for?

Read More Section(Basic Syntax in Ruby)

Each Section contains maximum 100 MCQs question on Basic Syntax in Ruby. To get more questions visit other sections.