Chapter 2 Quiz: Control Flow

5 questions · 70% to pass

1. What is the result of 5 > 3 and 2 < 1?

2. How many times will this loop run? for i in range(3):

3. What does the 'break' keyword do inside a loop?

4. An elif block requires a matching if before it.

5. Which loop is best when the number of iterations is unknown?

Back to Chapter