Vidyalelo
Ruby Programming · Q11

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 11

Q11

What does the join method do when used with an array in Ruby?

A.
Joins all elements into a single string
Answer
B.
Splits the array into multiple strings
C.
Combines two arrays
D.
Sorts the elements of the array

Answer: Option A

Solution

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