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 • 833K 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 • 833K Points
Coach

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

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