← Tools/📋 Trace Table
📋

Trace Table Builder

Choose a program, fill in the variable values row by row, then check your answers. Use "Custom" to trace your own code.

Choose program

Program — Pseudocode

Pseudocode
count ← 0
total ← 0
WHILE count < 4
   total ← total + (count * 2)
   count ← count + 1
ENDWHILE
OUTPUT total

Trace table

#counttotal
1

Trace table exam technique

  • •Each row = one iteration or significant change to a variable
  • •Only write a value when it changes — leave cells blank when unchanged
  • •Always include an initial row before any loop runs
  • •Show the OUTPUT column where required — examiners look for this
  • •For boolean conditions, write True/False (or 1/0) as appropriate