MCQs > IT & Programming > Ruby > Output of Ruby code? puts 'escape the sentence using '\\' puts 'That\'s right, this is a test'

Ruby MCQs

What is the output of the following two lines of codes executed at the Ruby command prompt?
puts 'escape the sentence using "\\"'
puts 'That\'s right, this is a test'

Answer

Correct Answer:

escape the sentence using "\"

That's right, this is a test

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Ruby Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ruby Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it