Mock Papers
Practice Papers
Past Papers
OCR A LEVEL 2025/26
Helpful for mocks and exam
revision
TYRIONPAPERS.COM
, Oxford Cambridge and RSA
Wednesday 18 June 2025 – Morning
A Level Computer Science
H446/02 Algorithms and programming
Time allowed: 2 hours 30 minutes
You can use:
* 1 3 5 2 4 4 1 7 8 5 *
• a ruler (cm/mm)
• an HB pencil
Do not use:
• a calculator
* H 4 4 6 0 2 *
Please write clearly in black ink. Do not write in the barcodes.
Centre number Candidate number
First name(s)
Last name
INSTRUCTIONS
• Use black ink. You can use an HB pencil, but only for graphs and diagrams.
• Write your answer to each question in the space provided. If you need extra space use
the lined page at the end of this booklet. The question numbers must be clearly shown.
• Answer all the questions.
INFORMATION
• The total mark for this paper is 140.
• The marks for each question are shown in brackets [ ].
• Quality of extended response will be assessed in questions marked with an
asterisk (*).
• This document has 32 pages.
ADVICE
• Read each question carefully before you start your answer.
© OCR 2025 [601/4911/5] OCR is an exempt Charity
DC (PQ/CGW) 337417/5 Turn over
for more: tyrionpapers.com
, 2
Section A
1 Data in a computer program needs to be sorted.
(a)
(i) Describe the steps a bubble sort will take to sort items into ascending order.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..................................................................................................................................................... [5]
(ii) Darcie and Felix have both written a program that will perform a bubble sort to put these numbers
into ascending order.
2 1 3 4 5 6 7
Darcie’s version will complete six passes. However, Felix’s version will only need to complete
two passes.
Explain how Felix may have made his version more efficient than Darcie’s version.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..................................................................................................................................................... [2]
© OCR 2025
for more: tyrionpapers.com
, 3
(b) A second type of sorting algorithm is an insertion sort.
Describe how an insertion sort can be used to put the following data into ascending order.
20 8 15 36
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..................................................................................................................................................... [5]
© OCR 2025 Turn over
for more: tyrionpapers.com
Practice Papers
Past Papers
OCR A LEVEL 2025/26
Helpful for mocks and exam
revision
TYRIONPAPERS.COM
, Oxford Cambridge and RSA
Wednesday 18 June 2025 – Morning
A Level Computer Science
H446/02 Algorithms and programming
Time allowed: 2 hours 30 minutes
You can use:
* 1 3 5 2 4 4 1 7 8 5 *
• a ruler (cm/mm)
• an HB pencil
Do not use:
• a calculator
* H 4 4 6 0 2 *
Please write clearly in black ink. Do not write in the barcodes.
Centre number Candidate number
First name(s)
Last name
INSTRUCTIONS
• Use black ink. You can use an HB pencil, but only for graphs and diagrams.
• Write your answer to each question in the space provided. If you need extra space use
the lined page at the end of this booklet. The question numbers must be clearly shown.
• Answer all the questions.
INFORMATION
• The total mark for this paper is 140.
• The marks for each question are shown in brackets [ ].
• Quality of extended response will be assessed in questions marked with an
asterisk (*).
• This document has 32 pages.
ADVICE
• Read each question carefully before you start your answer.
© OCR 2025 [601/4911/5] OCR is an exempt Charity
DC (PQ/CGW) 337417/5 Turn over
for more: tyrionpapers.com
, 2
Section A
1 Data in a computer program needs to be sorted.
(a)
(i) Describe the steps a bubble sort will take to sort items into ascending order.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..................................................................................................................................................... [5]
(ii) Darcie and Felix have both written a program that will perform a bubble sort to put these numbers
into ascending order.
2 1 3 4 5 6 7
Darcie’s version will complete six passes. However, Felix’s version will only need to complete
two passes.
Explain how Felix may have made his version more efficient than Darcie’s version.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..................................................................................................................................................... [2]
© OCR 2025
for more: tyrionpapers.com
, 3
(b) A second type of sorting algorithm is an insertion sort.
Describe how an insertion sort can be used to put the following data into ascending order.
20 8 15 36
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..................................................................................................................................................... [5]
© OCR 2025 Turn over
for more: tyrionpapers.com