MCQs > IT & Programming > Ruby > What is the output of the following code in Ruby? puts 'hello world'.sub(/[aeiou]/, '*')

Ruby MCQs

What is the output of the following code in Ruby?

puts "hello world".sub(/[aeiou]/, '*')


Answer

Correct Answer: h*llo world

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