A Level Computer Science 9618, topic 19.1
Algorithms: past paper questions
60 Cambridge A Level Computer Science 9618 questions on Algorithms (19.1) from 36 papers, 2023 to 2026. Open the paper or try a question free.
Practising builds a set from this topic, free with an account. One question opens straight away, with no account.
- Questions
- 60
- Papers
- 36
- Years
- 2023 to 2026
- Total marks
- 898
- Average per question
- 15 marks
- Largest question
- 30 marks
By type: Structured 60
How hard the questions are
- Recall12
- Apply29
- Analyse19
- Not banded0
Derived from the command word Cambridge prints in each question, banded by a fixed table beside the syllabus's own definitions. A question printing no command word is unbanded: unknown, not middling.
Command words
- writeRecall40 questions
write an answer in a specific way
- completeApply16 questions
add information to an incomplete diagram or table
- useApply16 questions
- explainAnalyse10 questions
set out purposes or reasons / make the relationships between things clear / say why and/or how and support with relevant evidence
- calculateApply7 questions
work out from given facts, figures or information
- describeApply7 questions
state the points of a topic / give characteristics and main features
- findApply6 questions
- showApply6 questions
- compareAnalyse5 questions
identify/comment on similarities and/or differences
- evaluateAnalyse4 questions
judge or calculate the quality, importance, amount, or value of something
Where the questions come from
By year
- 202613
- 202517
- 202418
- 202312
By session
- May/June39
- Oct/Nov21
By paper
- Paper 333
- Paper 427
Questions on this topic
Showing 30 of 60, spread across the years. Open one to write your answer and have it marked.
- Try this questionQuestion 7May/June 2026, paper 31Structured9 marks
Write this infix expression in Reverse Polish Notation (RPN).
- Try this questionQuestion 12Oct/Nov 2025, paper 32Structured9 marks
A stack has been implemented using pseudocode to store a maximum of 100 string items using the global variables in the following table: Identifier Data type…
- Try this questionQuestion 11Oct/Nov 2024, paper 31Structured12 marksHas a diagram
The following diagram shows an ordered binary tree. A linked list of nodes is used to store the data. Each node consists of a left pointer, the data and a right pointer.
- Try this questionQuestion 9Oct/Nov 2023, paper 31Structured9 marks
Write the infix expression for this Reverse Polish Notation (RPN) expression: 5 2 – 5 4 + * 9 /
- Try this questionQuestion 9May/June 2026, paper 31Structured9 marksHas a diagram
Explain how supervised learning and unsupervised learning are trained.
- Try this questionQuestion 8Oct/Nov 2025, paper 33Structured5 marksHas a diagram
Calculate the shortest distance between the Start node and each of the nodes in the graph using Dijkstra’s algorithm.
- Try this questionQuestion 11Oct/Nov 2024, paper 32Structured12 marksHas a diagram
This binary tree shows an ordered list of integers. A linked list of nodes is used to store the data. Each node consists of a left pointer, the data and a right pointer.
- Try this questionQuestion 10Oct/Nov 2023, paper 31Structured10 marks
A stack is to be set up using the information in the table.
- Try this questionQuestion 10May/June 2026, paper 31Structured9 marks
An insertion sort algorithm is used to sort the unique ID numbers of club members into ascending order. These unique ID numbers are kept in a 1D array MemberID. The corresponding names of the members are stored in a 1D array Names.
- Try this questionQuestion 1Oct/Nov 2025, paper 41Structured20 marks
A program stores integers in a stack. The stack is represented as a 1D array of 30 elements with the identifier Stack The global pointer TopOfStack stores the index of the last element inserted into the stack.
- Try this questionQuestion 8Oct/Nov 2023, paper 32Structured5 marksHas a diagram
Calculate the shortest distance between the Start and each of the destinations in the diagram using Dijkstra’s algorithm.
- Try this questionQuestion 3Oct/Nov 2025, paper 41Structured25 marks
A program stores records in the 2D array HashTable. Each record is stored at a specific index of the array that is calculated using a hashing algorithm with the record’s key field. The array has 100 × 10 elements.
- Try this questionQuestion 1Oct/Nov 2024, paper 41Structured22 marks
A program sorts string data using different sorting methods. The text file Data.txt stores string data items. Each data item is on a new line in the text file.
- Try this questionQuestion 9Oct/Nov 2023, paper 32Structured13 marks
A stack Abstract Data Type (ADT) is to be implemented using pseudocode, with procedures to initialise it and to push new items onto the stack. A 1D array Stack stores the contents of the stack.
- Try this questionQuestion 9May/June 2026, paper 32Structured9 marksHas a diagram
State the subset of Artificial Intelligence (AI) which makes use of an artificial neural network.
- Try this questionQuestion 2Oct/Nov 2025, paper 42Structured26 marks
A program stores 20 unique random integers between 0 and 100 (inclusive) in a 1D array that is local to the main program. Write program code to declare the array local to the main program and store 20 unique random numbers between 0 and 100 (inclusive) in the array.
- Try this questionQuestion 3Oct/Nov 2024, paper 41Structured19 marks
A linked list stores positive integer data in a 2D array. The first dimension of the array stores the integer data. The second dimension of the array stores the pointer to the next node in the linked list.
- Try this questionQuestion 10May/June 2026, paper 32Structured9 marks
Two examples of searching algorithms are a linear search and a binary search. Describe how increasing the number of data items in the file to be searched affects the time efficiency of these search algorithms.
- Try this questionQuestion 3Oct/Nov 2025, paper 42Structured21 marks
A program stores integers in ascending order in an ordered binary tree. The tree is implemented as a 2D array. Each node is stored with three values: • a pointer to the left node • the data • a pointer to the right node.
- Try this questionQuestion 3Oct/Nov 2024, paper 42Structured17 marks
The text file HighScoreTable.txt stores the top seven player scores for a game. The data in the file is stored in the order: Player ID Game level Score Each item of data is stored on a new line.
- Try this questionQuestion 7May/June 2026, paper 33Structured9 marks
Outline the process of using a stack to evaluate an expression written using Reverse Polish Notation (RPN).
- Try this questionQuestion 3Oct/Nov 2025, paper 43Structured20 marks
A program is written to perform different individual processes using arrays. (a) A 1D array stores 10 integers.
- Try this questionQuestion 11May/June 2023, paper 31Structured11 marks
Pseudocode is to be written to implement a queue Abstract Data Type (ADT) with items of the string data type. This will be implemented using the information in the table.
- Try this questionQuestion 9May/June 2026, paper 33Structured8 marksHas a diagram
Explain what is meant by regression methods in relation to machine learning.
- Try this questionQuestion 4May/June 2025, paper 31Structured7 marksHas a diagram
A linked list of nodes is used to store an ordered list of integers. Each node consists of the data, a left pointer and a right pointer, for example: Left pointer Data Right pointer 20 The linked list will be organised as a binary tree. −1 is used to represent a null pointer.
- Try this questionQuestion 11May/June 2023, paper 32Structured10 marks
The pseudocode shown represents a queue Abstract Data Type (ADT) with procedures for initialisation and to add new items. It is incomplete.
- Try this questionQuestion 10May/June 2026, paper 33Structured9 marks
A program declares a 1D array globally as PartName[1:1000000] OF STRING, and sorts its contents in ascending alphabetical order. The function PartSearch performs a binary search on the array. The item to be found is passed as a parameter.
- Try this questionQuestion 11May/June 2025, paper 32Structured6 marksHas a diagram
A linked list of nodes is used to store an ordered list of strings. Each node consists of the data, a left pointer and a right pointer. The linked list will be organised as a binary tree.
- Try this questionQuestion 5May/June 2024, paper 31Structured9 marksHas a diagram
Write this Reverse Polish Notation (RPN) in infix form: 5 2 + 9 3 - / 3 *
- Try this questionQuestion 1May/June 2026, paper 42Structured18 marks
A program stores nine lower-case strings in a 1D array TheData. The following strings are stored in the order shown: laptop tablet printer computer processor monitor memory cable touchscreen Write program code to declare the array TheData in the main program.






