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 AS LEVEL COMPUTER SCIENCE H046/02 Algorithms and Problem Solving Question Paper & Mark Scheme (Merged) May 2025 [VERIFIED]

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

2025 OCR AS LEVEL COMPUTER SCIENCE H046/02 Algorithms and Problem Solving Question Paper & Mark Scheme (Merged) May 2025 [VERIFIED] © OCR 2025 [601/5030/0] DC (KS) 324952/8 OCR is an exempt Charity Turn over 2 © OCR 2025 1 A gym owner would like a program for members to be able to book gym classes. Each class can have a maximum of 20 members. Members will enter their membership ID and then the date and time of the class they want to attend. Validation rules will check these details meet set rules. If they do not meet the validation rules then an error message will be displayed. A confirmation message will be displayed if the class is not full. A bleeping sound will play if the class is full. (a) Identify two inputs and two outputs for the program. Input 1 .............................................................................................................................................. Input 2 .............................................................................................................................................. Output 1 ........................................................................................................................................... Output 2 ........................................................................................................................................... [4] (b) The programmer is identifying any possible reusable components in the program design. Explain why the programmer should create reusable program components. .......................................................................................................................................................... .......................................................................................................................................................... .......................................................................................................................................................... .......................................................................................................................................................... .......................................................................................................................................................... . .........................................................................................

Mostrar más Leer menos
Institución
2025 OCR AS LEVEL COMPUTER SCIENCE H046/02 Algorit
Grado
2025 OCR AS LEVEL COMPUTER SCIENCE H046/02 Algorit











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

Escuela, estudio y materia

Institución
2025 OCR AS LEVEL COMPUTER SCIENCE H046/02 Algorit
Grado
2025 OCR AS LEVEL COMPUTER SCIENCE H046/02 Algorit

Información del documento

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

Temas

Vista previa del contenido

2025 OCR AS LEVEL COMPUTER SCIENCE H046/02 Algorithms and Problem Solving Question Paper &
Mark Scheme (Merged) May 2025 [VERIFIED]




© OCR 2025 OCR is an exempt
[601/5030/0] DC Charity Turn over
(KS) 324952/8

, 2
1 A gym owner would like a program for members to be able to book gym classes. Each class can
have a maximum of 20 members.

Members will enter their membership ID and then the date and time of the class they want to
attend. Validation rules will check these details meet set rules. If they do not meet the
validation rules then an error message will be displayed. A confirmation message will be
displayed if the class is not full. A bleeping sound will play if the class is full.

(a) Identify two inputs and two outputs for the program.

Input 1 ..............................................................................................................................................

Input 2 ..............................................................................................................................................

Output 1 ...........................................................................................................................................

Output 2 ...........................................................................................................................................
[4]

(b) The programmer is identifying any possible reusable components in the program design.

Explain why the programmer should create reusable program components.

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

. ....................................................................................................................................................... [3]




© OCR 2025

, 3
BLANK PAGE




DO NOT WRITE ON THIS PAGE




© OCR 2025 Turn over

, 4
2 Players in a computer game collect items. Each item has a name, e.g. “Fruit” and a type,
e.g. “Apple”. The items for player 1 are stored in a 2D array. The array is 0-indexed.

The pseudocode declaration for the array is:

array p1Items[10,2]

The first dimension stores the item name and the second dimension stores the type.

(a) One characteristic of the array is that it has 2 dimensions.

Identify two other characteristics of the given array.

1 .......................................................................................................................................................

..........................................................................................................................................................

2 .......................................................................................................................................................

..........................................................................................................................................................
[2]

(b) When the game starts, the pseudocode procedure initialiseArraywill initialise each name and
type in the array to "empty".

01 procedure initialiseArray(p1Items:byRef)
02 counter = 0
03 while counter < 10
04 p1Items[counter, 0] = "empty"
05 p1Items[counter, 1] = "empty"
06 counter = counter + 1
07 endwhile
08 endprocedure

(i) State why emptyis in speech marks on lines 04and 05.

..........................................................................................................................................................

. ....................................................................................................................................................... [1]

(ii) Rewrite the code in lines 02to 07to use a for loop instead of a while loop.

Write your answer using pseudocode or program code.

..........................................................................................................................................................
© 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