Exam
Vibe
Home
Engineering
Aerospace Engineering
Biomedical Engineering
Chemical Engineering
Civil Engineering
Computer Science
Electrical Engineering
Electronics and Communication Engineering
Mechanical Engineering
Govt Exam
Banking Exams
Other Government
Police
Railway Exams
SSC
State PSC Exams
Teaching / Education Exams
UPSC Exams
Blog
Contact
🔍
Home
›
Computer Science
›
Python MCQ Questions
›
Which method converts all characters in a string to upper...
Which method converts all characters in a string to uppercase?
A. upper()
B. uppercase()
C. toUpperCase()
D. toupper()
Explanation:
upper() converts all letters in a string to uppercase.
Tags:
Python MCQ Questions
,
Computer Science
« Previous
More from Python MCQ Questions:
What is the correct file extension for Python files?
What will be the output of the following Python code? ```python print(2 ** 3) ```
Which of the following is not a valid Python data type?
What is the result of the following code snippet? ```python x = [1, 2, 3] x.append([4, 5]) print(len(x)) ```
Which of the following methods can be used to remove an item from a Python list?
In Python, which of the following is used to define a block of code?