Plenty of π
Module 4: Control Flow – Conditionals and Loops
Quiz: Quiz 4: Control Flow

1. Which statement is used to execute a block of code only if a condition is true?

2. What is the purpose of the `else` clause in an `if...else` statement?

3. Which loop is best suited for iterating a known number of times?

4. What does the `break` statement do inside a loop?

5. Which loop type guarantees that its code block will execute at least once?

6. What is the primary use of the `for...of` loop?

7. In a `switch` statement, what is the purpose of the `break` keyword?

8. What will be printed by: `for (let i = 1; i <= 3; i++) { console.log(i); }`?

9. Which keyword is used to skip the current iteration of a loop and proceed to the next?