CAPE Computer Science Unit 1 · 2012 · Paper 2 · Question 3(b)(ii)
Two iterative algorithms are provided (Algorithm 1 uses a FOR loop from 0 to 15, Algorithm 2 uses a WHILE loop reading input until a sentinel value 999).
Which of the algorithms illustrates unbounded iteration? Justify your answer.
The mark scheme is shown once you've answered.
Practise this question