Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (D) Splits the string into substrings based on a delimiter

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
228
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate