Tracing a flowchart whose arrow loops back through a decision
An arrow that returns to a decision diamond. Each time you follow it, add a new row to the trace table so every pass of the loop is recorded, until you take the exit arrow.
Understanding Tracing a flowchart whose arrow loops back through a decision in ACARA Digital Technologies Years 7–8
What it does: The step count <- count + 1 comes before the diamond, so the trace row shows the updated count when the condition is checked. Counting visits to the diamond gives one row for each pass, and the last visit (count 3) fails the test and takes the exit arrow. A trace table keeps a separate row for each pass. A single row that is changed would erase the history, so you could not check the steps or find an error. The No arrow is the exit. You stop adding loop rows and follow it to the next shape, here the output.
Common mistakes: If count starts at 3, the test 3 < 3 is No on the very first visit. The loop-back arrow is never followed. Count should start at 0 so the diamond is visited again and again until count reaches 3. When n is 2, the test 2<2 is false, so the answer is No, not Yes. The exit arrow is taken here instead of another loop-back. It should say No.
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-back arrowFill in the Blanks
Spot the Error
Student with a class code? Join your class →