Quelpr

CAPE Computer Science Unit 1 · 2010 · Paper 2 · Question 3(d)

Amend the algorithm in Figure 1 to include an additional choice 'cherry' and keep a count of errors made (incorrectly spelt or not one of the three choices), displaying the error counter just before the algorithm terminates.

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. 3(a)State THREE basic control structures.[3 marks]
  2. 3(b)Using the algorithm in Figure 1, give an explanation of EACH control structure stated in (a).[6 marks]
  3. 3(c)Provide a graphical representation (flowchart) of the algorithm in Figure 1.[7 marks]

More practice: the rest of this paper · more Algorithm Verification and Development questions · all CAPE Computer Science Unit 1 past papers