4 marksRepresenting Algorithms
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