RecallStrideA BreakellSystems productTry revision

Free coding tool · No account required

Online pseudocode interpreter

Write and run pseudocode in your browser. Supply input, see the output and inspect the variable trace to understand each step.

For OCR GCSE and A-Level Computer Science practice. This is RecallStride's teaching dialect; check the required notation in your course materials. It is not an official OCR Exam Reference Language validator.

Try a program

Programs run locally in a browser worker. Code and inputs are not uploaded by this tool.

Output

Run the example to see its output.
Variable trace

The trace records state as execution reaches each statement. Line numbers refer to your program.

How to run pseudocode

  1. Choose an example or enter a short program.
  2. If it uses input, supply values in order, one per line.
  3. Predict the result, then select Run.
  4. Compare output and variable trace with your prediction. Use the reported line and hint if execution stops.

Supported syntax at a glance

Common RecallStride pseudocode constructs
PurposeExample
Assignmenttotal = 0
Outputprint(total)
Input and conversionage = int(input("Age?"))
Selectionif age >= 18 then … else … endif
Count-controlled loopfor i = 1 to 4 … next i
Condition-controlled loopwhile total < 10 … endwhile
Arrayarray values[4] then values[0] = 7
Integer operations17 DIV 5 gives 3; 17 MOD 5 gives 2

Put each statement on its own line. Arrays use zero-based indices. A TO loop includes its end value. The full Code studio also supports subprograms, strings and virtual files; programs cannot access your device's filesystem through the interpreter.

Understand the worked example

The loop visits count values 1, 2, 3 and 4. It adds each to total, producing 1, 3, 6 and 10 internally. Because print is after the loop, the program outputs 10 once. Move print inside the loop to see all four intermediate totals. Follow the complete trace table explanation.

Execution limits and errors

The interpreter limits program size, execution steps, input and output. Programs exceeding a limit stop with a diagnostic; an independent timeout terminates a long-running worker. A successful run is evidence for those inputs, not proof of correctness for every case or an exam mark.

Continue with 100 free coding tasks

The full workspace includes 60 A-Level tasks and 40 GCSE tasks, with prompts, hints and functional checks. Guest work is local; sign in to retain account progress where supported.

Linear vs binary search · GCSE revision · A-Level revision