The OUTPUT column of a trace table
The trace table column where you write each value or message shown by an OUTPUT statement, on the row where it happens. Text in quotes is copied exactly as the output.
Understanding The OUTPUT column of a trace table in IGCSE Computer Science Paper 2
What it does: The quotes mark text, not a variable. The word Pass is written exactly as it appears, with no variable lookup. The OUTPUT is not part of the loop body, so nothing is written to the OUTPUT column during the repeats. The final value of Total is written just once at the end. OUTPUT shows the value held in the variable, not the variable name. Write 15. Each output is recorded on the row where it happens, so the table shows when it was displayed. A statement after the loop runs only once, when the loop has finished. Write it once.
Common mistakes: The text and the variable must be separated by a comma. It should be OUTPUT "X is ", X so the OUTPUT column shows X is 4 on that row. Text to be shown exactly must be in quotes. Without quotes, Hello would be treated as a variable. It should be OUTPUT "Hello ", Name, giving Hello Sam in the OUTPUT column.
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 71–82) and word search (Modules 71–92).
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
OUTPUT columnFill in the Blanks
Spot the Error
Student with a class code? Join your class →