Module 3: Control Flow - Conditional Execution and Loops
Quiz: Quiz 3: Control Flow - Conditionals and Loops
1. What does the statement `if x == 5:` check for?
2. What is the primary difference between the `=` operator and the `==` operator in Python?
3. How does a `while` loop generally differ from a `for` loop in terms of how they iterate?
4. What does the `break` statement do when used inside a loop?
5. When is the `else` block of a `for` loop executed?
6. How many times will the loop `for i in range(0, 5):` execute its body?
7. What is the output of the Python expression `not False`?
8. What is the boolean value of the expression `True and False`?