Each question is a past paper trace table: pseudocode from Cambridge International AS & A Level Computer Science (9618) Paper 2, or pseudocode or a flowchart from Cambridge IGCSE Computer Science (0478) Paper 2. Dry run the algorithm with the data given, and complete the trace table as you would on the printed paper.
How to fill in the table. The table has the same rows as the mark scheme. In each row, write the value of any variable that changes, and any output. Leave a cell blank when its value doesn't change from the row above, as the mark scheme does. A row printed in grey is given in the question.
- Interactive mode: each row is marked the moment you tick it, and the lines (or boxes) it traces are highlighted. If it's wrong, you can try again, with an explanation of what went wrong. Tap the ? on a row for a fully worked explanation instead.
- Examination mode: no highlighting, no hints and no marking until you submit, as in the real exam.
Some answers use ∇ for a space, as the paper does: the ∇ button puts one in.
Signed in, your tables are saved as you go: come back to any question and carry on where you left off. A question is done once you've submitted it with every row filled in; done questions are ticked in the list, and Random question picks one you haven't done yet.
Set by your teacher. Questions your teacher has set you are marked in the list, and come up first. Each is worth one mark for every row you get right first time: a row you had to correct, or completed with a hint, gets no mark. If you had already done one before it was set, it starts again, fresh; after that you can have as many attempts as you like, and your best counts.
Objective: use a trace table to dry run an algorithm written in pseudocode or as a flowchart, showing how each variable changes and what is output (0478 syllabus 7, Algorithm design and problem-solving: complete a trace table to document a dry run; 9618 syllabus 12.3, Program testing and maintenance: dry runs).
Where this fits
- AP: AP Computer Science Principles Goes beyond AP Computer Science Principles: Uses Cambridge pseudocode, not the AP reference sheet's, but the tracing transfers.
- AQA: AQA A Level Computer Science (7517)
- Cambridge: Cambridge IGCSE Computer Science (0478); Cambridge A Level Computer Science (9618); Cambridge AS Level Computer Science (9618); Cambridge A Level Information Technology (9626); Cambridge AS Level Information Technology (9626) Goes beyond Cambridge A Level Information Technology (9626): Trace tables aren't named in 9626; reading pseudocode and flowcharts and finding their errors (4.1-4.2) is.
Goes beyond Cambridge AS Level Information Technology (9626): Trace tables aren't named in 9626; reading pseudocode and flowcharts and finding their errors (4.1-4.2) is.
- IB: IB Computer Science HL; IB Computer Science SL Goes beyond IB Computer Science HL: IB uses Java or Python, not Cambridge pseudocode, but dry running with a trace table is the same skill.
Goes beyond IB Computer Science SL: IB uses Java or Python, not Cambridge pseudocode, but dry running with a trace table is the same skill.
- Pearson Edexcel International: Edexcel International GCSE Computer Science (4CP0)
- USDP: USDP Computer Science