Question 16
AQA Computer Science Specimen Paper 1B (8525/1B)GCSE2 marks
On the specification
- 3.2 Programming
Question text
16 Figure 7 shows part of a program written in Python. Figure 7 validChoice = False while validChoice == False: choice = int(input('Enter your choice [1 - 10]')) if choice >= 1 and choice <= 10: validChoice = True else: print('Invalid choice') print('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]