Photo AI

Figure 7 shows part of a program written in VB.Net - AQA - GCSE Computer Science - Question 16 - 2021 - Paper 1

Question icon

Question 16

Figure-7-shows-part-of-a-program-written-in-VB.Net-AQA-GCSE Computer Science-Question 16-2021-Paper 1.png

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

Answer

Test type: Normal data Test data: 5 Expected result: Valid choice message displayed.

Step 2

Invalid data

99%

104 rated

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

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.

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

;