Plenary Studio
FeaturesComputer ScienceCode builder

AQA pseudocode trace table questions

A trace table question asks pupils to record the value of every variable, trip by trip, as a program runs. The code builder writes the program in AQA pseudocode, fills in the first rows and leaves the rest for the class, and because the snippet is built by construction the completed table is already right.

app.plenarystudio.co.uk
MDMr Davies
Code Builder
Complete the trace table.
1numbers ← [3, 3, 4, 3]
2total ← 0
3FOR i ← 0 TO LEN(numbers) - 1
4 n ← numbers[i]
5 total ← total + n
6ENDFOR
7OUTPUT total
numberstotalnOutput
[3, 3, 4, 3]0
33
Adds every number in the list to a running total, then prints the total.

A hand-built replica of the real builder page, not a screenshot. Every control shown exists in the product.

Part of the Code builder family. See OCR Exam Reference Language page to explore further.

Why this works in Computer Science

Drawing a trace table by hand means working every row yourself before the lesson. Here the table follows the AQA form, one column per variable in the order each is first written, Output last, one row per trip, and a cell left empty when its variable does not change. Turn the blanks off and it becomes a worked example.

Pupils who trace AQA pseudocode as Python stop one trip early or skip the line that reads the next item, and the empty row shows exactly where that happened. Generate a new example for another go, or export the table for a worksheet.

More Computer Science resources

Sign-ups open

Teach with us
and start building.

Plenary Studio is open to every UK secondary teacher. Sign up free, no card details, and build your first resource in minutes. Join the new wave of teachers bringing Plenary Studio into their classroom.

One inbox, no marketing list. We read every email.

Say hello.

We’d love to hear from teachers, heads of department, and anyone curious about where this is going.

hello@plenarystudio.co.uk

Opens your email client. Nothing is sent to us until you press send there.