1.

Which sequence can be used to substitute the value of any ruby expression in a string?(a) #(expr)(b) #{expr}(c) #expr(d) None of the mentionedThis question was addressed to me in homework.This intriguing question originated from Library Functions topic in portion Ruby Basics of Ruby

Answer»

The correct ANSWER is (B) #{expr}

To explain: #{expr} is valid.



Discussion

No Comment Found

Related InterviewSolutions