Skip to main content
O-LevelComputer ScienceAlgorithm design and problem-solving2210/22 · Oct/Nov 2019 · Q37 Marks

(a) The flowchart checks the lengths of a batch of 10 ropes. For the batch to be accepted 90% of the lengths need to be between 24.9 and 25.1 metres. [Figure 3.1]

  1. (a)Complete the trace table for the input data: 24.88, 25.01, 24.98, 25.00, 25.05, 24.99, 24.97, 25.04, 25.19, 25.07 Reject | Count | Length | OUTPUT ---|---|---|---[4]
  2. (b)(i)It has been decided to only reject batches of rope that contain ropes that are too short. State the change required to the algorithm.[1]
  3. (b)(ii)Explain how the algorithm to reject batches could be improved to make it more effective.[2]

This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.

Mark scheme

Marking points from the official mark scheme (Oct/Nov 2019). The mark or mark type is shown in brackets.

  1. [4] One mark for each correct column max. 4
  2. Reject | Count | Length | OUTPUT
  3. ---|---|---|---
  4. 0 | 0 | |
  5. 0 | 1 | 24.88 |
  6. 1 | 2 | 25.01 |
  7. 1 | 3 | 24.98 |
  8. 1 | 4 | 25.00 |
  9. 1 | 5 | 25.05 |
  10. 1 | 6 | 24.99 |
  11. 1 | 7 | 24.97 |
  12. 1 | 8 | 25.04 |
  13. 1 | 9 | 25.19 |
  14. 2 | 10 | 25.07 | Batch rejected
  15. [1] ∞ Remove Length < 25.1 AND
  16. [2] Two from:
  17. ∞ Check the reject counter after each incrementation/remove reject check after counter = 10
  18. ∞ as soon as Reject = 2 / >1 ...
  19. ∞ reject batch and end

Write your answer and get it marked

On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.

Sign up free →

About this question

Topic
Algorithm design and problem-solving, O-Level Computer Science (syllabus 2210). Structured question, 7 marks.
Source
O-Level Computer Science, Oct/Nov 2019 Paper 2 Variant 2, question 3.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep