Question 16
AQA Computer Science Specimen Paper 1C (8525/1C)GCSE2 marks
On the specification
- 3.2 Programming
Question text
16 Figure 7 shows part of a program written in VB.Net. Figure 7 Dim validChoice As Boolean Dim choice As Integer validChoice = False While validChoice = False Console.Write("Enter your choice [1 - 10] ") choice = Console.ReadLine() If choice >= 1 And choice <= 10 Then validChoice = True Else Console.WriteLine("Invalid choice") End If End While Console.WriteLine("Valid choice") Complete the following test plan for the code shown in Figure 7. Test Test data Expected result type Normal 5 Valid choice message displayed data Invalid data Boundary data [2 marks]