Vidyalelo
Ruby Programming · Q20

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 20

Q20

What is the result of the expression `"hello".split` in Ruby?

A.
["h", "e", "l", "l", "o"]
B.
["hello"]
C.
Error
Answer
D.
"hello"

Answer: Option C

Solution

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