Quelpr

CSEC Information Technology · 2011 · Paper 2 · Question 11(a)

Trace table execution for the given algorithm.

Copy and complete the trace table to show the result of the given algorithm: 1 last = 4 2 count = 0 3 While number = 3 to 7 Do 4 While (number <= last) DO 5 Count = Count + 1 6 End While 7 Output count

This question uses a figure or table from the paper — you'll see it when you practise.

The mark scheme is shown once you've answered.

Practise this question

Other parts of this question

  1. 11(b)What is the name of the structure from lines 3 to 6?[1 mark]

More practice: the rest of this paper · more Representing Algorithms questions · all CSEC Information Technology past papers