Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

OCR A Level 2025 Computer Science H446/02 – Algorithms and Programming Question Paper with Official Examiner Mark Scheme | Fully Verified Answers

Rating
-
Sold
-
Pages
64
Grade
A+
Uploaded on
15-01-2026
Written in
2025/2026

Access the OCR A Level 2025 Computer Science H446/02 – Algorithms and Programming question paper. Includes the Official Examiner Mark Scheme and fully verified answers, ideal for A Level revision, exam preparation, and classroom study in the UK.

Show more Read less
Institution
OCR

Content preview

S
uestion
Level Paper
question
OCR with
A/AS=2025
paper,
Exam-Ready
including
OCR A Examiner
the
Level
complete
Computer
MarkQuestion
Scheme.
Science
Paper
Covers
H44602
with
allExam-Ready
Algorithms
examinableand
content
Examiner
programming
withMark
Verified
Scheme.
Verified
Answers2025
Question
Covers all
paper
OCR
examinable
Awith
Level
Marking
content
Computer
Scheme
with
Science
Verified
Attached.pdf
H44602
Answers
Algorithms



2025 OCR A Level Computer Science
H446/02 Algorithms and programming
Verified Question paper with Marking Scheme Attached



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:
• a ruler (cm/mm)
• an HB pencil
Do not use:
• a calculator




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
1 OCR A/AS Page 1

,S
uestion
Level Paper
question
OCR with
A/AS=2025
paper,
Exam-Ready
including
OCR A Examiner
the
Level
complete
Computer
MarkQuestion
Scheme.
Science
Paper
Covers
H44602
with
allExam-Ready
Algorithms
examinableand
content
Examiner
programming
withMark
Verified
Scheme.
Verified
Answers2025
Question
Covers all
paper
OCR
examinable
Awith
Level
Marking
content
Computer
Scheme
with
Science
Verified
Attached.pdf
H44602
Answers
Algorithms


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




2 OCR A/AS Page 2

,S
uestion
Level Paper
question
OCR with
A/AS=2025
paper,
Exam-Ready
including
OCR A Examiner
the
Level
complete
Computer
MarkQuestion
Scheme.
Science
Paper
Covers
H44602
with
allExam-Ready
Algorithms
examinableand
content
Examiner
programming
withMark
Verified
Scheme.
Verified
Answers2025
Question
Covers all
paper
OCR
examinable
Awith
Level
Marking
content
Computer
Scheme
with
Science
Verified
Attached.pdf
H44602
Answers
Algorithms


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


3 OCR A/AS Page 3

,S
uestion
Level Paper
question
OCR with
A/AS=2025
paper,
Exam-Ready
including
OCR A Examiner
the
Level
complete
Computer
MarkQuestion
Scheme.
Science
Paper
Covers
H44602
with
allExam-Ready
Algorithms
examinableand
content
Examiner
programming
withMark
Verified
Scheme.
Verified
Answers2025
Question
Covers all
paper
OCR
examinable
Awith
Level
Marking
content
Computer
Scheme
with
Science
Verified
Attached.pdf
H44602
Answers
Algorithms


4
(c) A third type of sorting algorithm is a quick sort.

The following quick sort algorithm is made up of two functions called partition()and
quickSort(). The algorithm will sort an integer array into ascending numerical order.

01 function partition(array, low, high) 02

pivot = array[high]

03 index = low - 1
04 for count = low to high-1

05 if array[count] < pivot then 06

index = index + 1

07 temp = array[index]
08 array[index] = array[count]

09 array[count] = temp

10 endif

11 next count

12 temp = array[index + 1]

13 array[index + 1] = array[high]

14 array[high] = temp

15 return index + 1

16 endfunction

17

18 function quickSort(array, low, high)

19 if low < high then

20 partitionIndex = partition(array, low, high)

21 quickSort(array, low, partitionIndex - 1)

22 quickSort(array, partitionIndex + 1, high)

23 endif

24 endfunction

(i) Identify which of the two functions is recursive and give all of the line numbers where recursive calls
are made.

Recursive function name ..................................................................................................................

Recursive call line numbers .............................................................................................................
[2]
© OCR 2025




4 OCR A/AS Page 4

Document information

Uploaded on
January 15, 2026
Number of pages
64
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

£6.47
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Thumbnail
Package deal
UK A Level & GCSE Computer Science & Design Technology 2025 Exam Papers + Mark Schemes | Cambridge & OCR Verified Solutions | 2026 Revision Bundle
-
6 2026
£ 38.81 More info

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
exam1 College
View profile
Follow You need to be logged in order to follow users or courses
Sold
81
Member since
9 months
Number of followers
0
Documents
331
Last sold
4 hours ago

3.9

9 reviews

5
5
4
2
3
0
2
0
1
2

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions