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

A programmer has written a routine to check that prices are below $10.00. These values are used as test data. 10.00 9.99 ten Explain why each value was chosen.

Mark scheme

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

  1. [1] 10.00: boundary/erroneous data // the price should be rejected // value is out of range
  2. [1] 9.99: boundary/extreme/normal data // the prices should be accepted // value is within normal range
  3. [1] ten: erroneous/abnormal data // input should be rejected // value is wrong type

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, 3 marks.
Source
O-Level Computer Science, May/June 2018 Paper 2 Variant 1, question 4.

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