Photo AI

Complete the following test plan for the code shown in Figure 7 - AQA - GCSE Computer Science - Question 16 - 2021 - Paper 1

Question icon

Question 16

Complete-the-following-test-plan-for-the-code-shown-in-Figure-7-AQA-GCSE Computer Science-Question 16-2021-Paper 1.png

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

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

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

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).

Join the GCSE students using SimpleStudy...

97% of Students

Report Improved Results

98% of Students

Recommend to friends

100,000+

Students Supported

1 Million+

Questions answered

;