Computer Science 9618 · Chapter 11 of 20
Programming
315 Cambridge A Level Computer Science (9618) past-paper questions on Programming, across 3 subtopics, with official mark schemes.
Subtopics
- Programming Basics149 questions
- Constructs49 questions
- Structured Programming6 questions
Programming questions by year and paper
How often Programming has come up in Cambridge A Level Computer Science (9618) exams. The busiest years were 2024 (33 questions), 2023 (33 questions), 2022 (27 questions). Every count links back to real sittings in the yearly past papers.
| Year | Paper 2 | Paper 4 | Total |
|---|---|---|---|
| 2026 | 7 | – | 7 |
| 2025 | 13 | 11 | 24 |
| 2024 | 23 | 10 | 33 |
| 2023 | 21 | 12 | 33 |
| 2022 | 17 | 10 | 27 |
| 2021 | 16 | 5 | 21 |
| 2020 | 1 | – | 1 |
| 2019 | 14 | – | 14 |
| 2018 | 6 | – | 6 |
| 2017 | 11 | 1 | 12 |
| 2016 | 13 | – | 13 |
| 2015 | 13 | – | 13 |
Latest exam questions on Programming
The most recent 12 questions on this chapter, newest first. Build a booklet to get every one of them with its official mark scheme.
- 9618/21 · May/June 2026 · Question 1
Study this pseudocode: FOR i 3 TO 12 STEP 3 OUTPUT …
- 9618/21 · May/June 2026 · Question 5
Electric light bulbs are advertised online with the price showing: $1.75 each or 20 bulbs for $30.00 A pseudocode function BulbCost() • takes the quantity of bulbs purchased as its single parameter • returns …
- 9618/21 · May/June 2026 · Question 9
A hotel has three floors numbered 0 to 2 (floor 0 is the ground floor). There are 15 rooms on each floor. The hotel gets many enquiries from customers to check if a room …
- 9618/22 · May/June 2026 · Question 3
A computer game uses a text file named WordList.txt containing 10 000 words, all in lower case. Each word is unique and is stored on a separate line of the text file. An efficient …
- 9618/22 · May/June 2026 · Question 6
A program is being developed to encrypt a message. The following terms are used in the encryption technique to be used: term definition plain text The original message before it is encrypted. cipher text …
- 9618/23 · May/June 2026 · Question 1
Study the pseudocode. i 1 REPEAT OUTPUT …
- 9618/23 · May/June 2026 · Question 8
A warehouse stores stock in bins. A bin is a container which stores the stock items; each bin can store many identical items. The warehouse is organised on three different levels – level 0 …
- 9618/21 · Oct/Nov 2025 · Question 1
A program is being developed to meet a particular customer requirement. (a) The program contains these variables: Variable Data type MyChar CHAR MyString STRING MyInt INTEGER MyDOB DATE Complete the table by filling in …
- 9618/21 · Oct/Nov 2025 · Question 7
There are several different ways to express an algorithm during the design of a program. (a) One part of the program contains an algorithm which is represented by a state-transition diagram. The table shows …
- 9618/22 · Oct/Nov 2025 · Question 1
(a) The table contains pseudocode examples. Each example may contain statements that relate to one or more of: • selection • iteration (repetition) • subroutines (procedures or functions). Complete the table by placing one …
- 9618/22 · Oct/Nov 2025 · Question 6
A string function Compare() will compare two strings. The function will: • take four parameters: ○ two strings, String1 and String2 ○ a character, Position, to indicate whether String1 will be compared with the …
- 9618/23 · Oct/Nov 2025 · Question 1
A user requires a program that implements complex data encryption to a recognised international standard. A programmer has started the design of the program. (a) The programmer decides to use a library routine to …
Key terms examiners use
- procedure
- function
- parameter
- loop
- iteration
- selection
- variable
- constant
- subroutine
- for to
- while
- repeat until
- if then
- case of
- assignment
- byref
- byval
- local