TraceAlgorithm State
Teacher guide Recall → Rebuild → Trace → Code

Guided program simulation

Follow the state, one step at a time.

Read the highlighted line, predict every value in the current row, and check the complete state before advancing. The trace table makes changes to variables, conditions, indexed data, and output visible.

  1. Read the prompt and starting state.
  2. Follow the highlighted line.
  3. Enter the program state for that step.
  4. Correct mistakes before continuing.

Learner identity

Identify your work before tracing.

Your name is locked when you check the first step. The completed PNG uses this identity and can be downloaded only once for that trace.

Privacy: this information stays in this browser and is not sent to a server.