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

This pseudocode algorithm is used as a validation check. PRINT "Input a number from 1 to 5000" REPEAT INPUT Number IF Number < 1 OR Number > 5000 THEN PRINT "Invalid number, please try again" ENDIF UNTIL Number >= 1 AND Number <= 5000 PRINT Number, " is within the correct range"

  1. Identify three different types of test data. For each type, give an example of the test data you would use to test this algorithm and state a reason for your choice of test.[6]

Mark scheme

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

  1. [6] One mark for each correct type of test and one mark for each correct accompanying example of test data and reason (max six) e.g.
  2. • Extreme data • 5000 • to check it is accepted
  3. • Normal data • 300 • To check it is accepted
  4. • Abnormal data • 10000 • To check it is rejected

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, 6 marks.
Source
O-Level Computer Science, Oct/Nov 2020 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