Examveda

What is the purpose of the String#<< method in Ruby?

A. It inserts a substring into another string

B. It converts a string into lowercase

C. It converts a string into uppercase

D. It appends a string to the end of another string

Answer: Option D


This Question Belongs to Ruby Programming >> Advanced Topics In Ruby

Join The Discussion

Related Questions on Advanced Topics in Ruby