Python MCQs with answers Page - 155

Here, you will find a collection of MCQ questions on Python. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 828.03K Points
Coach

Q. What is the output of the following code?

Code:
print(len('Python'))
  • (A) 5
  • (B) 6
  • (C) 7
  • (D) Error

A

Admin • 828.03K Points
Coach

Q. Which keyword is used to create an infinite loop in Python?

  • (A) loop
  • (B) repeat
  • (C) while True
  • (D) forever

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ