Error: a step placed inside or outside the loop
A bug where a step sits in the wrong place around a loop. A SHOW inside repeats every pass, and an update outside runs only once. Indentation shows which steps are inside the loop.
Understanding Error: a step placed inside or outside the loop in ACARA Digital Technologies Years 7–8
What it does: Here SHOW is not indented, so it sits outside the loop and runs once after all the passes have finished. i ← i + 1 is outside the loop, so i stays 1 and the condition is always true. Indent the update into the loop.
Common mistakes: The update is not indented, so it sits outside the loop and runs only once. It should be ' ADD 1 TO sides', indented inside the loop, so sides grows on every pass. The score update is at the left margin, so it is outside the loop and runs only once. It should be ' ADD 2 TO score', indented inside the loop, so it repeats on every pass.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 420–481) and word search (Modules 420–519).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
loop placement errorFill in the Blanks
Spot the Error
Student with a class code? Join your class →