Skip to content
Paper 2 skill

ZAK's Trace Table Generator

Every trace-table question in the exam works the same way: one row per change, one column per variable. Run any algorithm here, then cover the table and do it by hand — check yourself against the generated one.

Loading playground…

How examiners want trace tables

  • Only write a value in a cell when it changes. Leave it blank otherwise (this tool shows one change per row for clarity).
  • Loop counters: write the value at the moment the loop sets it, including the final value that ends the loop if the algorithm tests it.
  • Add an OUTPUT column and record exactly what is printed, with quotes and spaces.
  • Never skip iterations — even if you can “see” the answer.
Enroll nowOnline classes