Figure 7 shows part of a program written in VB.Net - AQA - GCSE Computer Science - Question 16 - 2021 - Paper 1
Question 16
Figure 7 shows part of a program written in VB.Net.
Dim validChoice As Boolean
Dim choice As Integer
validChoice = False
While validChoice = False
Console.Write... show full transcript
Worked Solution & Example Answer:Figure 7 shows part of a program written in VB.Net - 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
Test type: Normal data
Test data: 5
Expected result: 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
Test type: Invalid data
Test data: Any value other than the numbers 1 to 10 inclusive.
Expected 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
Test type: Boundary data
Test data: Any one of 0, 1, 10, or 11.
Expected result:
If 1 or 10 given as test data: Valid choice message displayed.
If 0 or 11 given as test data: Invalid choice message displayed.