Vidyalelo
Ruby Programming · Q31

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 31

Q31

What does the `split` method do when called on a string in Ruby?

A.
Splits the string at every occurrence of a specified character
B.
Splits the string into characters
C.
Splits the string into words
D.
Splits the string into substrings based on a delimiter
Answer

Answer: Option D

Solution

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