Photo AI

Figure 7 shows part of a program written in C# - AQA - GCSE Computer Science - Question 16 - 2021 - Paper 1

Question icon

Question 16

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

Figure 7 shows part of a program written in C#. ```csharp bool validChoice; int choice; validChoice = false; while (validChoice == false) { Console.Write("Enter... show full transcript

Worked Solution & Example Answer:Figure 7 shows part of a program written in C# - AQA - GCSE Computer Science - Question 16 - 2021 - Paper 1

Step 1

Normal data

96%

114 rated

Answer

5 Expected result: Valid choice message displayed.

Step 2

Invalid data

99%

104 rated

Answer

Any value other than the numbers 1 to 10 inclusive. Expected result: Invalid choice message displayed.

Step 3

Boundary data

96%

101 rated

Answer

Any one of 0, 1, 10 or 11. Expected result:

  • If 1 or 10 is given as test data: Valid choice message displayed.
  • If 0 or 11 is 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

;