Home »
MCQs »
Ruby on Rails MCQs
Which technique is used for adding a string to a literal in Ruby?
64. Ruby ____ is a technique for adding a string to a literal.
- Interpolation
- Substitution
- Injection
Answer: A) Interpolation
Explanation:
Ruby interpolation is a technique for adding a string to a literal.