1.

What do we mean by expression substitution?(a) Embedding the value of Ruby expression into a string using #{}(b) Substituting string functions(c) Storing string value(d) None of the mentionedThis question was addressed to me by my college director while I was bunking the class.The doubt is from Formatting String Methods in section Ruby Basics of Ruby

Answer» RIGHT answer is (a) EMBEDDING the value of Ruby expression into a string using #{}

Explanation: STRINGS are DISPLAYED #{} sequence.


Discussion

No Comment Found

Related InterviewSolutions