1

What is the output of given code? puts "what is your first name?" name=gets.chomp puts "what is your surname?" surname=gets.chomp

Correct Answer: What is your first name? xyz(enter any name) What is your surname? wtu(enter your surname)

Make the most of this question

This page focuses on one Ruby MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

Ruby MCQs MCQ: What is the output of given code? puts "what is your first name?" name=gets.chomp puts "what is your surname?" surname=gets.chomp | Extra Education