100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

AS LEVEL COMPUTER SCIENCE: Actual May 2025 PAST PAPER 2: Algorithms and problem solving. All Assessment Questions & Mark Scheme [OCR H046/02]

Rating
-
Sold
-
Pages
36
Grade
A+
Uploaded on
15-11-2025
Written in
2025/2026

AS LEVEL COMPUTER SCIENCE: Actual May 2025 PAST PAPER 2: Algorithms and problem solving. All Assessment Questions & Mark Scheme [OCR H046/02] Exam Resource Summary The AS Level Computer Science May 2025 Paper 2: Algorithms and Problem Solving (OCR H046/02) – All Assessment Questions & Mark Scheme document integrates the complete official examination paper with its full mark scheme, providing a structured and detailed revision resource. This paper assesses students’ understanding of algorithm design, computational thinking, and problem-solving techniques, covering key topics such as searching and sorting algorithms, recursion, data structures, and pseudocode implementation. It also evaluates students’ ability to apply logical reasoning and programming principles to develop efficient and accurate solutions. The merged format presents each question alongside its marking criteria, giving students clear insight into examiner expectations, mark allocation, and structured coding and reasoning approaches. This resource is essential for focused revision, self assessment, and strengthening computational and analytical skills, making it a key tool for preparation for the May 2026 OCR AS Level Computer Science Paper 2: Algorithms and Problem Solving examination. 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 .......................................................................

Show more Read less
Institution
AS LEVEL COMPUTER SCIENCE: Actual May 2025 PAST PA
Course
AS LEVEL COMPUTER SCIENCE: Actual May 2025 PAST PA











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
AS LEVEL COMPUTER SCIENCE: Actual May 2025 PAST PA
Course
AS LEVEL COMPUTER SCIENCE: Actual May 2025 PAST PA

Document information

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

Subjects

Content preview

AS LEVEL COMPUTER SCIENCE: Actual May 2025 PAST PAPER 2: Algorithms and
problem solving. All Assessment Questions & Mark Scheme [OCR H046/02]

Exam Resource Summary

The AS Level Computer Science May 2025 Paper 2: Algorithms and Problem Solving (OCR
H046/02) – All Assessment Questions & Mark Scheme document integrates the complete
official examination paper with its full mark scheme, providing a structured and detailed revision
resource. This paper assesses students’ understanding of algorithm design, computational
thinking, and problem-solving techniques, covering key topics such as searching and sorting
algorithms, recursion, data structures, and pseudocode implementation. It also evaluates
students’ ability to apply logical reasoning and programming principles to develop efficient
and accurate solutions. The merged format presents each question alongside its marking criteria,
giving students clear insight into examiner expectations, mark allocation, and structured
coding and reasoning approaches. This resource is essential for focused revision, self-
assessment, and strengthening computational and analytical skills, making it a key tool for
preparation for the May 2026 OCR AS Level Computer Science Paper 2: Algorithms and
Problem Solving examination.


Turn over

, 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 initialiseArray will 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 empty is in speech marks on lines 04 and 05.

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

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

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

Write your answer using pseudocode or program code.

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

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

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

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

© OCR 2025

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.
Pristine01 Chamberlain College Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
1556
Member since
2 year
Number of followers
910
Documents
1874
Last sold
3 hours ago
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.

Read more Read less
4.4

306 reviews

5
209
4
55
3
20
2
4
1
18

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 tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right 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 aced it. It really can be that simple.”

Alisha Student

Frequently asked questions