Edexcel IGCSEGeneralGeneral Applications4 Marks
A programmer writes an algorithm for a sorting routine. The routine takes a list of numbers, L, as input.
- (a)State the purpose of a sorting routine.[1]
- (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.
- 5(a) To arrange items / records into a specific order / alphabetical order / numerical order / ascending / descending order (1) B1
- 5(b) Up to three of: B1 for each different type of test data.
- Normal data (1)
- Boundary data (1)
- Erroneous / Abnormal data (1)
- Extreme data (1)
- Empty list / no data (1)
- Sorted list (already sorted ascending/descending) (1)
- Reverse sorted list (1)
- List with duplicates (1)
- 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 →