Python MCQ Quiz – Reach next level in Python programming!

Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python

Here is an interesting Python MCQ Quiz. Attempting this quiz will help you to evaluate your knowledge and skills. So, get ready to take the quiz.

Do check out the other parts of the Python quiz as well once you are done with this part:

Here we come to the end of the Python Quiz. Hope you enjoyed it!!!

Do share your feedback and score in the comments section.

Did you know we work 24x7 to provide you best tutorials
Please encourage us - write a review on Google

courses
Image

DataFlair Team

DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.

53 Responses

  1. Image Gamer'sRepublic says:

    In Quiz Second, 13th question is wrong according to your correct answer.
    Two * gonna be print if and only if the code is such as:
    i=7
    while i>0:
    i-=3
    if i<=2:
    print('*')
    break
    else:
    print('*')

    and According to your code three * will be print.

  2. Image funjan says:

    its saying all my answers are correct even when they are worng

  3. Image Vidya says:

    Python MCQ

  4. Image Abdelrhman says:

    Hello

  5. Image akriti gupta says:

    same this will print 3 *

  6. Image Alexandru Gheorghe Muntenaș says:

    i=7
    while i>0:
    i-=3
    print(‘*’)
    if i<=2:
    break
    else:
    print(‘*’)
    this will print three * so i think the answer is wrong

  7. Image Sai krishna says:

    I need explanation

  8. Image areef says:

    i=7
    while i>0:
    i-=3
    print(‘*’)
    if i<=2:
    break
    else:
    print('*')

    answers is 3 and you said 2 so it is wrong sir,please check it sir

  9. Image FUJI ANSORIYADI says:

    question number 8 the correct answer should be an error or exception

Leave a Reply

Your email address will not be published. Required fields are marked *