Q. Which method converts a string to uppercase in Ruby?

  • (A) upcase
  • (B) uppercase
  • (C) toUpperCase
  • (D) capitalize
πŸ’¬ Discuss
βœ… Correct Answer: (A) upcase
Explanation: The upcase method converts a string to uppercase.
Explanation by: Rati Dubey
The upcase method converts a string to uppercase.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
81
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
94%
Success Rate