Complete the following test plan for the code shown in Figure 7 - AQA - GCSE Computer Science - Question 16 - 2021 - Paper 1
Question 16
Complete the following test plan for the code shown in Figure 7.
| Test type | Test data | Expected result |
|-----------|-----------|------------------|
| Normal d... show full transcript
Worked Solution & Example Answer:Complete the following test plan for the code shown in Figure 7 - AQA - GCSE Computer Science - Question 16 - 2021 - Paper 1
Step 1
Normal data
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
For normal data, we use a valid input, which is 5. The expected output for this input is a message that confirms a valid choice has been made: Valid choice message displayed.
Step 2
Invalid data
99%
104 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
For invalid data, any input outside the range of 1 to 10 is considered invalid. Therefore, inputs like 0, -1, 11, or any non-numeric input will yield the result: Invalid choice (message displayed).
Step 3
Boundary data
96%
101 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
For boundary data, we can check inputs on the edges of the valid range. If we input 1 or 10, the output would be: Valid choice (message displayed).
However, inputs 0 or 11 would produce: Invalid choice (message displayed).