Q. Which method converts a string to uppercase?

A
toUpper()
B
upper()
C
capitalize()
D
title()
Solution:

The upper() method converts all characters to uppercase, e.g., ‘python’ becomes ‘PYTHON’.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!