← VCE Pseudocode

Trace Tables

A table that records the value of each variable at every step of an algorithm, used to check its logic by hand.

Understanding Trace Tables in VCE Pseudocode

What it does: Each row in a trace table shows one step or loop pass. Tracing values by hand can reveal logic errors. Columns are used to track how each variable changes. Rows track the algorithm's progress step by step. A trace table is a technique for checking code, not replacing it. x ← x + 1 adds one to x on every loop pass. The loop stops once the WHILE condition becomes false. Trace tables are worked through manually to check logic.

Common mistakes: Each row does show one step of the algorithm's execution. Trace tables do track loop steps, one row at a time.

Class: _____________________  ·  Name: _____________________  ·  Date: _________

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 11–28) and word search (Modules 1–28).

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
Does each column in a trace table track one variable?
YesNo
Matches
A trace table replaces writing the algorithm
↓
Wrong - a trace table checks the algorithm, not replaces it
Applying
Meanings
Term
Trace table
Meaning
A table that records the value of each variable at every step of an algorithm, used to check its logic by hand.
Practice
BEGIN
Testing
Gaps
Each tracks one variable
Check Answer
Spots
1Rows never show steps
2Trace tables have columns

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Golden Eagle' badge — High Flyer, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. Does each column in a trace table track one variable?
A. No
B. Yes ✓
Columns are used to track how each variable changes.
2. Does each row in a trace table represent one step?
A. Yes ✓
B. No
Rows track the algorithm's progress step by step.
3. Can trace tables help find logic errors?
A. Yes ✓
B. No
Following values by hand can reveal where logic goes wrong.
4. Is a trace table a replacement for writing the algorithm?
A. No ✓
B. Yes
A trace table is a technique for checking code, not replacing it.
5. Does x increase by 1 each loop pass in this example?
A. No
B. Yes ✓
x ← x + 1 adds one to x on every loop pass.

Match the Pairs

Trace table → A table that records each variable's value at every step
Column → Tracks one variable's changing value
Represents one step of the algorithm → Row
Helps find where an algorithm's logic goes wrong → Trace table
A trace table replaces writing the algorithm → Wrong - a trace table checks the algorithm, not replaces it
Rows track variables, not steps → Wrong - rows track steps, columns track variables

Key Term

Trace table
A table that records the value of each variable at every step of an algorithm, used to check its logic by hand.

Fill in the Blanks

1. Each column tracks one variable
Hint: Type the word for a vertical section of the table.
2. Each row shows one step
Hint: Type the word for a horizontal line of the table.
3. Trace tables help find logic errors
Hint: Type the word for mistakes in an algorithm's logic.
4. x starts at 1 in this algorithm
Hint: Type the value x is first assigned.
5. x increases by 1 each loop
Hint: Type the word for x getting bigger each time.

Spot the Error

Question 1
A Rows never show steps
B Trace tables have columns
C Each column is one variable
Line A — Each row does show one step of the algorithm's execution.
Question 2
A Trace tables track values
B They never track loop steps
C They help spot logic errors
Line B — Trace tables do track loop steps, one row at a time.
Question 3
A x starts at 1 here
B The loop runs while x <= 3
C x never changes value
Line C — x changes value each loop, increasing by 1.
Question 4
A Each row is one step
B Each column is one variable
C They're a manual technique
D Trace tables are always code
Line D — Trace tables are a technique for tracking values, not code itself.
Question 5
A The loop checks x <= 3
B x increases by 1 each pass
C DISPLAY x shows the value
D x starts at 1 initially
E The loop runs forever
Line E — The loop stops once x is greater than 3, not forever.

Student with a class code? Join your class →