Question 1
1 markA program asks the user to enter a whole number from 1 to 50. The user types the word ten.
State the type of test data this is.
Model answer
Abnormal data
Explanation
The program expects a number, so text is the wrong data type and should be rejected. Data that should be rejected is abnormal data. Testing with it checks that the program does not crash or accept nonsense input.
Mark scheme
-
1 mark
Abnormal (test) data
Accept: erroneous data.