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"
- 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.
- [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.
- • Extreme data • 5000 • to check it is accepted
- • Normal data • 300 • To check it is accepted
- • 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 →