Examveda
Examveda

What does the << operator do when used with a string in Ruby?

A. Appends a character to the end

B. Removes the last character

C. Concatenates two strings

D. Reverses the string

Answer: Option A


Join The Discussion

Related Questions on Arrays, Hashes and Strings in Ruby