100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

2025 OCR A-LEVEL COMPUTER SCIENCE H446/02 Algorithms and Programming Question Paper & Mark Scheme (Merged) June 2025 [VERIFIED]

Puntuación
-
Vendido
-
Páginas
85
Grado
A+
Subido en
13-01-2026
Escrito en
2025/2026

2025 OCR A-LEVEL COMPUTER SCIENCE H446/02 Algorithms and Programming Question Paper & Mark Scheme (Merged) June 2025 [VERIFIED] © OCR 2025 [601/4911/5] DC (PQ/CGW) 337417/5 OCR is an exempt Charity Turn over 2 © OCR 2025 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 effici

Mostrar más Leer menos
Institución
2025 OCR A-LEVEL COMPUTER SCIENCE H446/02 Algorith
Grado
2025 OCR A-LEVEL COMPUTER SCIENCE H446/02 Algorith











Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
2025 OCR A-LEVEL COMPUTER SCIENCE H446/02 Algorith
Grado
2025 OCR A-LEVEL COMPUTER SCIENCE H446/02 Algorith

Información del documento

Subido en
13 de enero de 2026
Número de páginas
85
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

2025 OCR A-LEVEL COMPUTER SCIENCE H446/02 Algorithms and Programming Question Paper &
Mark Scheme (Merged) June 2025 [VERIFIED]




© OCR 2025 OCR is an exempt
[601/4911/5] DC Charity Turn over
(PQ/CGW)
337417/5

, 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

, 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

, 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 ..................................................................................................................
© OCR 2025
$9.99
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Pristine01 Chamberlain College Nursing
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
1607
Miembro desde
2 año
Número de seguidores
909
Documentos
1874
Última venta
9 horas hace
Ace Your Exams with Expertly Crafted Study Materials!

Looking to level up your revision? I offer comprehensive, easy-to-understand study materials tailored for major exam boards including AQA, OCR, Edexcel, and more, perfect for A-Level, GCSE, and other courses. ✨ What You’ll Get: 1. Concise summaries and clear explanations 2. * Past exam papers with complete official marking schemes * Whether you need quick revision notes, detailed study guides, or real past papers to test your knowledge, I’ve got you covered. These resources are designed to help you study smarter and achieve top grades.

Lee mas Leer menos
4.4

314 reseñas

5
214
4
58
3
20
2
4
1
18

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes