Skip to main content
O-LevelComputer ScienceAlgorithm design and problem-solving2210/22 · May/June 2017 · Q35 Marks

This flowchart inputs the weight of items in kilograms to be loaded on a trailer. Any item over 25 kilograms is rejected. The trailer can take up to 100 kilograms. [Figure 3.1]

  1. Complete the trace table for the input data: 13, 17, 26, 25, 5, 10, 15, 35, 20, 15 Weight Reject TotalWeight OUTPUT[5]

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 (May/June 2017). The mark or mark type is shown in brackets.

  1. [1 mark] for correct final Reject value (2)
  2. [1 mark] for TotalWeight column up to the first 85
  3. [1 mark] for TotalWeight value of 105 and then 85 for input 20
  4. [1 mark] for correct final OUTPUT string: 'Weight of items 85 Number of items rejected 2'

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, 5 marks.
Source
O-Level Computer Science, May/June 2017 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