Monday 19 May 2025 – Afternoon
AS Level Computer Science
H046/02 Algorithms and problem solving
Time allowed: 1 hour 15 minutes
(Verified Question Paper With Mark
Scheme Combined June 2025)
, INSTRUCTIONS
• Use black ink.
• 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 70.
• 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 16 pages.
ADVICE
• Read each question carefully before you start your answer.
© OCR 2025
OCR is an exempt
[601/5030/0] DC (KS)
Charity Turn over
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 Turn over
2025