Trace Table Generator for IGCSE & A-Level Computer Science
A trace table is an essential technique for dry running pseudocode algorithms in Cambridge IGCSE (0478/0984) and A-Level (9618) Computer Science exams. It lets you execute code line-by-line on paper, tracking how each variable changes at every step. Trace tables are commonly used in Paper 2 to test whether an algorithm produces the correct output for given input data.
PseudoStudio's interactive trace table generator lets you paste any pseudocode algorithm and instantly creates a grid with columns for every variable, condition, and output. Fill in each cell as you trace through the code, then click Validate Table to check your answers against the ground truth generated by our pseudocode interpreter. Correct values are highlighted in green, incorrect values in red with the expected answer shown.
Whether you are practising FOR loops, WHILE loops, IF/ELSE conditionals, array searches, or sorting algorithms like Bubble Sort, this tool gives you instant automated feedback — something no paper worksheet can do. You can also print blank worksheets for offline revision.
Trace Table FAQs
What is a trace table in IGCSE Computer Science?
▼
A trace table is a structured grid used to dry run an algorithm step-by-step. Each column represents a variable, condition, or output, and each row records the state after executing a line of pseudocode. In Cambridge IGCSE (0478/0984) and A-Level (9618) exams, trace tables appear in Paper 2 and test your ability to manually execute code and predict outputs.
How do I use this trace table generator?
▼
Paste your Cambridge-style pseudocode into the code panel on the left. The trace table grid will automatically generate columns for every declared variable and OUTPUT. Fill in each cell row-by-row as you trace through the algorithm, then click "✔ Validate Table" to instantly check your answers. You can also click "🔑 Show Answer Key" to reveal the complete solution.
Can I print trace table worksheets for exam practice?
▼
Yes! Click the "🖨️ Print Worksheet" button in the toolbar to generate a clean, printable version of the pseudocode and blank trace table grid. This is perfect for offline exam revision, classroom exercises, and mock paper practice.