Skip to main content
O-LevelComputer ScienceProgramming2210/22 · May/June 2018 · Q53 Marks

5 A program checks that the weight of a basket of fruit is over 1.00 kilograms and under 1.10 kilograms. Weights are recorded to an accuracy of two decimal places and any weight not in this form has already been rejected.

  1. (a)Give three weights as test data and for each weight state a reason for choosing it. All your reasons must be different. Weight 1 Reason.. Weight 2. Reason. Weight 3.. Reason.[3]

Mark scheme

Marking points from the official mark scheme (May/June 2018). The mark or mark type is shown in brackets.

  1. [3] One mark per value and reason, max 3
  2. Example 1.00 - boundary rejected//rejected (underweight) // out of range(1)
  3. 1.02 - normal // valid // accepted weight in range (1)
  4. 1.10 - abnormal // erroneous // invalid // rejected (overweight) (1)

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
Programming, O-Level Computer Science (syllabus 2210). Structured question, 3 marks.
Source
O-Level Computer Science, May/June 2018 Paper 2 Variant 2, question 5.

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