Computer Science · Oct / Nov 2020 · Paper 22 · Question 3
0478
As printed in the paper
The question as text
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. Type of test data 1 Test data Reason Type of test data 2 Test data Reason Type of test data 3 Test data Reason [6]
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
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.
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

