CAPE Computer Science Unit 1 · 2009 · Paper 2 · Question 4(b)
Trace through the execution of the given algorithm and draw the exact output produced, using '-' to represent spaces printed by printSpaces(n).
More practice: the rest of this paper · more Algorithm Verification and Development questions · all CAPE Computer Science Unit 1 past papers