Q. What does the `reverse` method do when called on a string in Ruby?

  • (A) Reverses the order of characters in the string
  • (B) Reverses the order of words in the string
  • (C) Converts the string to lowercase
  • (D) Converts the string to uppercase
πŸ’¬ Discuss
βœ… Correct Answer: (A) Reverses the order of characters in the string

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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