Gr 12 – Trace tables

Debugging pseudocode by stepping through it with a trace tableĀ  Here are three pseudocode trace table exercises with their solutions. NOTES: You must have a column in the solution for the line number. The loops must be clearly visible ie the lines numbers get repeated...

Gr 12 – Pseudocode

You have to be able to write an algorithm in pseudocode as well as produce a trace table based on a pseudocode algorithm. There is no single exact version of pseudocode, but this handout based on the IEB examinations from 2018 onwards is reasonably mainstream. Click...