Vidyalelo
Ruby Programming · Q7

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 7

Q7

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

A.
Appends a character to the end
Answer
B.
Removes the last character
C.
Concatenates two strings
D.
Reverses the string

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board