Python MCQ Quiz Hub

Python MCQS - loops in python

Choose a topic to test your knowledge and improve your Python skills

1. Which of the following is the loop in python ?




2. for loop in python are work on




3. What we put at the last of the loop ?




4. For loop in python is




5. To break the infinite loop , which keyword we use ?




6. which of the following is consider as a infinite loop ?




7. How many times it will print the statement ?, for i in range(100): print(i)




8. What is the final value of the i after this, for i in range(3): pass




9. What is the value of i after the for loop ?, for i in range(4):break




10. l=[],for i in l: print(l), what is the output ?




11. while(1): print(2), How many times a loops run ?




12. While(0), how many times a loop run ?




13. while(1==3):, how many times a loop run ?




14. for i in range(-3), how many times this loop will run ?




15. for i in [1,2,3]:, how many times a loop run ?




16. Which of the following is Exit control loop in python ?




17. In which of the following loop in python, we can check the condition ?




18. Which of the following loop is work on the particular range in python ?




19. Which of the following loop is not supported by the python programming language ?




20. It is possible to create a loop using goto statement in python ?