Trace the program
A trace table with the value of every variable after each step, and the output.
Computational thinking can be learnt away from the computer: following an algorithm step by step, predicting what it will print, finding its bug and putting its instructions in order. These are the tasks of PISA 2025’s Learning in the Digital World and of the computing curriculum. This free generator makes flowchart and pseudocode worksheets with programs the generator runs, so every answer and trace table in the answer key is right.
Student worksheet
Answer key A trace table with the value of every variable after each step, and the output.
Three options for the missing step: only one gives the output.
The program prints the wrong thing: find the wrong step and fix it.
Jumbled instructions that only give the output in one order.
From pseudocode to a flowchart, with the right flowchart in the answer key.
Every exercise prints as a flowchart or as pseudocode with English keywords.