Skip to main content
Edexcel IGCSEGeneralGeneral Applications4 Marks

A programmer writes an algorithm for a sorting routine. The routine takes a list of numbers, L, as input.

  1. (a)State the purpose of a sorting routine.[1]
  2. (b)The programmer wants to test the sorting routine. Describe three different types of test data that the programmer should use.[3]

Mark scheme

Marking points from the official mark scheme. The mark or mark type is shown in brackets.

  1. 5(a) To arrange items / records into a specific order / alphabetical order / numerical order / ascending / descending order (1) B1
  2. 5(b) Up to three of: B1 for each different type of test data.
  3. Normal data (1)
  4. Boundary data (1)
  5. Erroneous / Abnormal data (1)
  6. Extreme data (1)
  7. Empty list / no data (1)
  8. Sorted list (already sorted ascending/descending) (1)
  9. Reverse sorted list (1)
  10. List with duplicates (1)
  11. List with invalid data (alphabetic / special characters) (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
General Applications, Edexcel IGCSE General. Structured question, 4 marks.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related General questions

© 2026 Oracle Prep