Robust and secure programming: AQA GCSE Computer Science questions
Every AQA GCSE Computer Science exam question on 3.2.11 Robust and secure programming, 2022–2025, with its mark scheme and examiner’s report.
Paper
All papers
Exam
All years
Calculations
Q04.1
The whole paper ↗Q04.2
The whole paper ↗Q04.3
The whole paper ↗Q04.4
The whole paper ↗Q04.5
The whole paper ↗Q04.1
The whole paper ↗Q04.2
The whole paper ↗Q04.3
The whole paper ↗Q04.4
The whole paper ↗Q04.5
The whole paper ↗Q04.1
The whole paper ↗Q04.2
The whole paper ↗Q04.3
The whole paper ↗Q04.4
The whole paper ↗Q04.5
The whole paper ↗Q03.2
The whole paper ↗Q03.3
The whole paper ↗Q03.2
The whole paper ↗Q03.3
The whole paper ↗
All 63 questions on Robust and secure programming, as a list
- June 2025, Paper 1 (C#), Q04.1 (1 mark): Identify the purpose of validation. Shade one lozenge. [1 mark] A Checks that the user is human B Checks that the user is who they say they are C Checks that th
- June 2025, Paper 1 (C#), Q04.2 (6 marks): Write a C# program to check the user’s first name. Your program should: • get the user’s first name • check that the first name has more than one character and
- June 2025, Paper 1 (C#), Q04.3 (1 mark): Which of the following statements best describes boundary test data? Shade one lozenge. [1 mark] A Data that is not of the allowed data type B Data that is at t
- June 2025, Paper 1 (C#), Q04.4 (1 mark): The programmer has started planning the tests that will be used to check the program is working correctly. The program should: • check that the first name has m
- June 2025, Paper 1 (C#), Q04.5 (1 mark): Normal and boundary are two types of test data. State one type of test data that has not been used in Figure 3. [1 mark] DO NOT WRITE ON THIS PAGE ANSWER IN THE
- June 2025, Paper 1 (Python), Q04.1 (1 mark): Identify the purpose of validation. Shade one lozenge. [1 mark] A Checks that the user is human B Checks that the user is who they say they are C Checks that th
- June 2025, Paper 1 (Python), Q04.2 (6 marks): Write a Python program to check the user’s first name. Your program should: • get the user’s first name • check that the first name has more than one character
- June 2025, Paper 1 (Python), Q04.3 (1 mark): Which of the following statements best describes boundary test data? Shade one lozenge. [1 mark] A Data that is not of the allowed data type B Data that is at t
- June 2025, Paper 1 (Python), Q04.4 (1 mark): The programmer has started planning the tests that will be used to check the program is working correctly. The program should: • check that the first name has m
- June 2025, Paper 1 (Python), Q04.5 (1 mark): Normal and boundary are two types of test data. State one type of test data that has not been used in Figure 3. [1 mark] DO NOT WRITE ON THIS PAGE ANSWER IN THE
- June 2025, Paper 1 (VB.NET), Q04.1 (1 mark): Identify the purpose of validation. Shade one lozenge. [1 mark] A Checks that the user is human B Checks that the user is who they say they are C Checks that th
- June 2025, Paper 1 (VB.NET), Q04.2 (6 marks): Write a VB.NET program to check the user’s first name. Your program should: • get the user’s first name • check that the first name has more than one character
- June 2025, Paper 1 (VB.NET), Q04.3 (1 mark): Which of the following statements best describes boundary test data? Shade one lozenge. [1 mark] A Data that is not of the allowed data type B Data that is at t
- June 2025, Paper 1 (VB.NET), Q04.4 (1 mark): The programmer has started planning the tests that will be used to check the program is working correctly. The program should: • check that the first name has m
- June 2025, Paper 1 (VB.NET), Q04.5 (1 mark): Normal and boundary are two types of test data. State one type of test data that has not been used in Figure 3. [1 mark] DO NOT WRITE ON THIS PAGE ANSWER IN THE
- June 2024, Paper 1 (C#), Q03.2 (2 marks): Complete the test plan in Table 1 to test the validation of userNumber in the program in Figure 3. [2 marks] Table 1 Test number Test type Test data Expected re
- June 2024, Paper 1 (C#), Q03.3 (2 marks): In an earlier version of the program in Figure 3, line 6 contained one syntax error and one logic error: whil (userNumber < 1 || userNumber >= 100) Complete the
- June 2024, Paper 1 (C#), Q11 (7 marks): A program is to be written to authenticate a username and password entered by the user. Figure 9 shows the only two pairs of valid usernames and passwords. Figu
- June 2024, Paper 1 (Python), Q03.2 (2 marks): Complete the test plan in Table 1 to test the validation of userNumber in the program in Figure 3. [2 marks] Table 1 Test number Test type Test data Expected re
- June 2024, Paper 1 (Python), Q03.3 (2 marks): In an earlier version of the program in Figure 3, line 5 contained one syntax error and one logic error: whil userNumber < 1 or userNumber >= 100: Complete the
- June 2024, Paper 1 (Python), Q11 (7 marks): A program is to be written to authenticate a username and password entered by the user. Figure 9 shows the only two pairs of valid usernames and passwords. Figu
- June 2024, Paper 1 (VB.NET), Q03.2 (2 marks): Complete the test plan in Table 1 to test the validation of userNumber in the program in Figure 3. [2 marks] Table 1 Test number Test type Test data Expected re
- June 2024, Paper 1 (VB.NET), Q03.3 (2 marks): In an earlier version of the program in Figure 3, line 6 contained one syntax error and one logic error: Whil userNumber < 1 Or userNumber >= 100 Complete the t
- June 2024, Paper 1 (VB.NET), Q11 (7 marks): A program is to be written to authenticate a username and password entered by the user. Figure 9 shows the only two pairs of valid usernames and passwords. Figu
- June 2023, Paper 1 (C#), Q04.2 (1 mark): Describe one way that the program in Figure 3 could be made more robust. [1 mark]
- June 2023, Paper 1 (C#), Q06 (4 marks): Figure 5 shows an algorithm represented using pseudo-code. The algorithm is for a simple authentication routine. The pseudo-code uses a subroutine getPassword t
- June 2023, Paper 1 (C#), Q11.1 (4 marks): Table 1 shows three tests used to check the algorithm in Figure 10. Complete the table to show what the values of the validChoice and difference variables would
- June 2023, Paper 1 (C#), Q11.2 (1 mark): The algorithm in Figure 10 contains a logic error on line 11. Describe how the error on line 11 can be corrected. [1 mark]
- June 2023, Paper 1 (C#), Q13 (6 marks): A programmer is writing a game. The game uses a 3 x 3 grid containing nine squares. Figure 14 A B C 1 2 3 X In the game, a square on the grid is referred to by
- June 2023, Paper 1 (Python), Q04.2 (1 mark): Describe one way that the program in Figure 3 could be made more robust. [1 mark]
- June 2023, Paper 1 (Python), Q06 (4 marks): Figure 5 shows an algorithm represented using pseudo-code. The algorithm is for a simple authentication routine. The pseudo-code uses a subroutine getPassword t
- June 2023, Paper 1 (Python), Q11.1 (4 marks): Table 1 shows three tests used to check the algorithm in Figure 10. Complete the table to show what the values of the validChoice and difference variables would
- June 2023, Paper 1 (Python), Q11.2 (1 mark): The algorithm in Figure 10 contains a logic error on line 11. Describe how the error on line 11 can be corrected. [1 mark]
- June 2023, Paper 1 (Python), Q13 (6 marks): A programmer is writing a game. The game uses a 3 x 3 grid containing nine squares. Figure 14 A B C 1 2 3 X In the game, a square on the grid is referred to by
- June 2023, Paper 1 (VB.NET), Q04.2 (1 mark): Describe one way that the program in Figure 3 could be made more robust. [1 mark]
- June 2023, Paper 1 (VB.NET), Q06 (4 marks): Figure 5 shows an algorithm represented using pseudo-code. The algorithm is for a simple authentication routine. The pseudo-code uses a subroutine getPassword t
- June 2023, Paper 1 (VB.NET), Q11.1 (4 marks): Table 1 shows three tests used to check the algorithm in Figure 10. Complete the table to show what the values of the validChoice and difference variables would
- June 2023, Paper 1 (VB.NET), Q11.2 (1 mark): The algorithm in Figure 10 contains a logic error on line 11. Describe how the error on line 11 can be corrected. [1 mark]
- June 2023, Paper 1 (VB.NET), Q13 (6 marks): A programmer is writing a game. The game uses a 3 x 3 grid containing nine squares. Figure 14 A B C 1 2 3 X In the game, a square on the grid is referred to by
- June 2022, Paper 1 (C#), Q05.1 (2 marks): The program shown in Figure 6 contains a syntax error. Shade two lozenges to indicate the statements that are true about syntax errors. [2 marks]
- June 2022, Paper 1 (C#), Q05.2 (2 marks): The program shown in Figure 6 also contains a logic error. Identify the line number that contains the logic error, and correct this line of the program. Your co
- June 2022, Paper 1 (C#), Q13.1 (4 marks): Figure 14 shows part of the program that will get a player to enter the position of a card to swap. Figure 14 Console.Write("Enter card position: "); int positi
- June 2022, Paper 1 (Python), Q05.1 (2 marks): The program shown in Figure 6 contains a syntax error. Shade two lozenges to indicate the statements that are true about syntax errors. [2 marks]
- June 2022, Paper 1 (Python), Q05.2 (2 marks): The program shown in Figure 6 also contains a logic error. Identify the line number that contains the logic error, and correct this line of the program. Your co
- June 2022, Paper 1 (Python), Q13.1 (4 marks): Figure 14 shows part of the program that will get a player to enter the position of a card to swap. Figure 14 position = int(input("Enter card position: ")) Ext
- June 2022, Paper 1 (VB.NET), Q05.1 (2 marks): The program shown in Figure 6 contains a syntax error. Shade two lozenges to indicate the statements that are true about syntax errors. [2 marks]
- June 2022, Paper 1 (VB.NET), Q05.2 (2 marks): The program shown in Figure 6 also contains a logic error. Identify the line number that contains the logic error, and correct this line of the program. Your co
- June 2022, Paper 1 (VB.NET), Q13.1 (4 marks): Figure 14 shows part of the program that will get a player to enter the position of a card to swap. Figure 14 Console.Write("Enter card position: ") Dim positio
- Specimen, Paper 1 (C#), Q06 (5 marks): Write a C# program that inputs a password and checks if it is correct. Your program should work as follows: • input a password and store it in a suitable variab
- Specimen, Paper 1 (C#), Q16 (2 marks): Figure 7 shows part of a program written in C#. Figure 7 bool validChoice; int choice; validChoice = false; while (validChoice == false) { Console.Write("Enter
- Specimen, Paper 1 (C#), Q17.2 (1 mark): State the line number from the program in Figure 8 which contains the error that stops the program from sometimes working correctly. [1 mark]
- Specimen, Paper 1 (C#), Q17.3 (1 mark): Describe how the line of code identified in your answer to 17.2 should be changed so that the program in Figure 8 will work correctly. [1 mark]
- Specimen, Paper 1 (C#), Q18 (8 marks): Write a C# program that calculates an estimate of the braking distance in metres for a new model of go-kart that is travelling between 10 and 50 kilometres per
- Specimen, Paper 1 (Python), Q06 (5 marks): Write a Python program that inputs a password and checks if it is correct. Your program should work as follows: • input a password and store it in a suitable va
- Specimen, Paper 1 (Python), Q16 (2 marks): 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]')) i
- Specimen, Paper 1 (Python), Q17.2 (1 mark): State the line number from the program in Figure 8 which contains the error that stops the program from sometimes working correctly. [1 mark]
- Specimen, Paper 1 (Python), Q17.3 (1 mark): Describe how the line of code identified in your answer to Question 17.2 should be changed so that the program in Figure 8 will work correctly. [1 mark]
- Specimen, Paper 1 (Python), Q18 (8 marks): Write a Python program that calculates an estimate of the braking distance in metres for a new model of go-kart that is travelling between 10 and 50 kilometres
- Specimen, Paper 1 (VB.NET), Q06 (5 marks): Write a VB.Net program that inputs a password and checks if it is correct. Your program should work as follows: • input a password and store it in a suitable va
- Specimen, Paper 1 (VB.NET), Q16 (2 marks): 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 Cons
- Specimen, Paper 1 (VB.NET), Q17.2 (1 mark): State the line number from the program in Figure 8 which contains the error that stops the program from sometimes working correctly. [1 mark]
- Specimen, Paper 1 (VB.NET), Q17.3 (1 mark): Describe how the line of code identified in your answer to 17.2 should be changed so that the program in Figure 8 will work correctly. [1 mark]
- Specimen, Paper 1 (VB.NET), Q18 (8 marks): Write a VB.Net program that calculates an estimate of the braking distance in metres for a new model of go-kart that is travelling between 10 and 50 kilometres
Questions, mark schemes and examiner’s reports are © AQA, from their published past papers. Plumi isn’t affiliated with any exam board. Want whole papers? Full past papers.
Rather write your answers by hand on iPad? Plumi marks them against the same mark schemes.