Skip to content

Quiz: Advanced Loops

2 min read

1. When is the value of a constant determined?

Show hint

Constants are a feature of the compiler, not the game engine.

2. Which loop type always executes its body at least once?

Show hint

Think about where the condition is checked — before or after the loop body.

3. What does the continue command do inside a loop?

Show hint

It's the opposite of break — instead of leaving the loop, it starts a new iteration

4. True or false: In a for loop, the end value is not used.

Show hint

The loop variable takes the end value in the last iteration, and then the loop ends.