Plenary Studio
FeaturesComputer ScienceCode builder

OCR Exam Reference Language code tracing

OCR Exam Reference Language is the pseudocode used in the J277 papers, and it is one of the three ways the code builder can show a snippet. Set the board to OCR and every question renders in the reference language, with Python one click away for comparison.

app.plenarystudio.co.uk
MDMr Davies
Code Builder
State the output of this code.
1total = 0
2for i = 1 to 6
3 total = total + i
4next i
5print(total)
Adds the whole numbers from 1 to 6 and prints the running 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 AQA pseudocode trace tables page to explore further.

Why this works in Computer Science

Pupils who have only seen Python read the inclusive loop bound wrong and count one trip too few, and that is exactly the slip a trace table exposes. The details the mark scheme rewards are all here, next i to close a loop, array to declare a list, .length for its size, MOD and DIV as words, and substring taking a start and a count.

Because switching the board changes the notation and nothing else, you can put the reference language and the Python side by side and ask what differs. Download the question for a worksheet or step through it in the presenter.

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.