MCQs > IT & Programming > Ruby > What is the output of the following code in Ruby? x= 'Ruby' + 'Strings' puts x y= 'Ruby' << 'Strings' puts y z = 'Ruby'.concat('Strings') puts z

Ruby MCQs

What is the output of the following code in Ruby?

x= "Ruby" + "Strings"

puts x

y= "Ruby" << "Strings"

puts y

z = "Ruby".concat("Strings")

puts z


Answer

Correct Answer:

RubyStrings

RubyStrings

RubyStrings 


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