Q. Which method is used to convert all characters in a string to uppercase?

  • (A) upper()
  • (B) uppercase()
  • (C) capitalize()
  • (D) toUpperCase()
πŸ’¬ Discuss
βœ… Correct Answer: (A) upper()
Explanation: `upper()` returns a copy of the string with all characters in uppercase.
Explanation by: Mr. Dubey
`upper()` returns a copy of the string with all characters in uppercase.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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