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

The flowchart below inputs the weight of a number of parcels in kilograms. Parcels weighing more than 25 kilograms are rejected. A value of –1 stops the input. The following information is output: the total weight of the parcels accepted and number of parcels rejected. [Figure 3.1]

  1. Complete the trace table for the input data: 1.8, 26.0, 7.0, 11.3, 10.0, 2.5, 25.2, 5.0, 19.8, 29.3, –1 Total Reject Weight OUTPUT 0 0 [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 2015). The mark or mark type is shown in brackets.

  1. [2] (2 marks) (-1 for each error) (then follow though) for Total column
  2. [1] (1 mark) for Reject column
  3. [1] (1 mark) for Weight column
  4. [1] (1 mark) (allow follow through) (from Total and Reject) for Output column

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 2015 Paper 2 Variant 1, 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