Skip to content
Android waitlistTry on iPad

Additional programming techniques: OCR GCSE Computer Science questions

Every OCR GCSE Computer Science exam question on 2.2.3 Additional programming techniques, 2022–2025, with its mark scheme and examiner’s report.

Paper
All papers
Exam
All years
Calculations

282 questions

  1. Q4(a)

    June 2025 · Paper 2

    The whole paper ↗
  2. Q6(b)(i)

    June 2025 · Paper 2

    The whole paper ↗
  3. Q6(b)(ii)

    June 2025 · Paper 2

    The whole paper ↗
  4. Q6(c)(i)

    June 2025 · Paper 2

    The whole paper ↗
  5. Q6(c)(ii)

    June 2025 · Paper 2

    The whole paper ↗
  6. Q6(d)(iii)

    June 2025 · Paper 2

    The whole paper ↗
  7. Q6(a)

    June 2024 · Paper 2

    The whole paper ↗
  8. Q6(b)

    June 2024 · Paper 2

    The whole paper ↗
  9. Q8(b)

    June 2024 · Paper 2

    The whole paper ↗
  10. Q9(d)

    June 2024 · Paper 2

    The whole paper ↗
  11. Q6(c)(i)

    June 2023 · Paper 2

    The whole paper ↗
  12. Q6(c)(iv)

    June 2023 · Paper 2

    The whole paper ↗
  13. Q6(d)

    June 2023 · Paper 2

    The whole paper ↗
  14. Q6(e)

    June 2023 · Paper 2

    The whole paper ↗
  15. Q6(f)(ii)

    June 2023 · Paper 2

    The whole paper ↗
  16. Q5(a)(iii)

    June 2022 · Paper 2

    The whole paper ↗
  17. Q5(c)(i)

    June 2022 · Paper 2

    The whole paper ↗
  18. Q5(c)(ii)

    June 2022 · Paper 2

    The whole paper ↗
  19. Q3

    Specimen · Paper 2

    The whole paper ↗
All 22 questions on Additional programming techniques, as a list
  1. June 2025, Paper 2, Q4(a) (5 marks): Complete the algorithm using the OCR Exam Reference Language statements in the box. Not all statements are used. data for if myFile.close() myFile.readLine() in
  2. June 2025, Paper 2, Q6(b)(i) (4 marks): Refine the SQL statement to correct the errors. [4]
  3. June 2025, Paper 2, Q6(b)(ii) (1 mark): Identify one example of a record from TblMusic [1]
  4. June 2025, Paper 2, Q6(c)(i) (4 marks): Write a function, calculatePrice() that: • takes the number of tickets to be purchased as a parameter • calculates and returns the total price to pay. You must
  5. June 2025, Paper 2, Q6(c)(ii) (2 marks): Write an algorithm that: • uses the function calculatePrice() to find the price for a visitor buying 3 tickets • stores the result in the variable totalPrice Yo
  6. June 2025, Paper 2, Q6(d)(iii) (1 mark): Refine line 05 in the algorithm to output "The total act count is " and then the content of the variable count For example: The total act count is 50 New line 0
  7. June 2024, Paper 2, Q6(a) (3 marks): Complete the table to show the output when each statement executes. The first output has been completed for you. Statement Output print(message.length) 8 print(
  8. June 2024, Paper 2, Q6(b) (3 marks): Write an algorithm in pseudocode to: store "Hello" in the variable word1 • store "Everyone" in the variable word2 • concatenate word1 and word2 to store "HelloE
  9. June 2024, Paper 2, Q8(b) (6 marks): If the character moves left, 5 is subtracted from the position. If the character moves right, 5 is added to the position. The position of the character can only
  10. June 2024, Paper 2, Q9(d) (4 marks): The individual results for each student in each event are stored in a database. The database table TblResult stores the times of students in the 100 m race. Som
  11. June 2023, Paper 2, Q6(c)(i) (1 mark): Give the line number where there is concatenation. [1]
  12. June 2023, Paper 2, Q6(c)(iv) (1 mark): Give the line number that contains a function call. [1]
  13. June 2023, Paper 2, Q6(d) (3 marks): The alarm system has a log that stores a record each time a sensor is triggered. This is called an event. The record format is given in the table: Fieldname Des
  14. June 2023, Paper 2, Q6(e) (6 marks): A program written in a high-level language is used to access the data from the database. This program has a procedure, SaveLogs(), that stores the data to an ex
  15. June 2023, Paper 2, Q6(f)(ii) (6 marks): Write a program that: • asks the user to input a date • totals the number of seconds sensors have been activated on the date input • outputs the calculated tota
  16. June 2022, Paper 2, Q5(a)(iii) (4 marks): Booking records are stored in a database table called TblBookings. The following SQL statement is written to display all customer bookings that stay more than o
  17. June 2022, Paper 2, Q5(c)(i) (4 marks): Create a function, newPrice(), that takes the number of nights and the type of room as parameters, calculates and returns the price to pay. You do not have to v
  18. June 2022, Paper 2, Q5(c)(ii) (3 marks): Write program code, that uses newPrice(), to output the price of staying in a Premium room for 5 nights. You must use either: • OCR Exam Reference Language, or
  19. Specimen, Paper 2, Q3 (3 marks): The database table Results stores the results for each student in each of their chosen subjects. StudentName Subject Grade Alistair English 3 Jaxon Art 5 Alex A
  20. Specimen, Paper 2, Q4(b)(ii) (6 marks): Write an algorithm for the updated program design shown in question 4(b)(i). ……………………………………………………………………………………………..…………… ……………………………………………………………………………………………..………
  21. Specimen, Paper 2, Q8(c) (1 mark): Data for one week (Monday to Friday) is stored in a 2D array with the identifier minsPlayed. The following table shows part of this array, containing 4 students
  22. Specimen, Paper 2, Q8(g)(ii) (4 marks): A program is created to convert hours and minutes into a total number of minutes. The teacher wants to create a sub program to perform the calculation. The prog

Questions, mark schemes and examiner’s reports are © OCR, 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.