COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
string.upper()
|
|
string ____ name.upper()
|
|
string ____ name.uppercase()
|
|
None of the above
|
Detailed explanation-1: -The toUpperCase() method converts a string to upper case letters. Note: The toLowerCase() method converts a string to lower case letters.
Detailed explanation-2: -Performing the . upper() method on a string converts all of the characters to uppercase, whereas the lower() method converts all of the characters to lowercase.
Detailed explanation-3: -toupper() function in C The toupper() function is used to convert lowercase alphabet to uppercase. i.e. If the character passed is a lowercase alphabet then the toupper() function converts a lowercase alphabet to an uppercase alphabet. It is defined in the ctype.
Detailed explanation-4: -The toUpperCase() method returns the value of the string converted to uppercase.