1.

What does %Q{ Learn ruby language } represents?(a) ” Learn Ruby language ”(b) “%{ Learn Ruby language }”(c) ” Learn Ruby language ”(d) None of the mentionedThis question was posed to me in an interview for job.The doubt is from Formatting String Methods in portion Ruby Basics of Ruby

Answer» CORRECT OPTION is (a) ” Learn Ruby language ”

The best I can explain: ANYTHING inside %Q{} is WRITTEN inside “”.


Discussion

No Comment Found

Related InterviewSolutions