Algorithms and Programming All Assessment Questions & Mark Scheme [OCR J277/02]
Exam Resource Summary
The GCSE (9–1) Computer Science May 2025 Computational Thinking, Algorithms and Programming
Paper (OCR J277/02) integrates the full official examination paper with its detailed mark scheme to
create a focused and comprehensive revision resource. This paper assesses students’ understanding of
algorithm design, programming constructs, computational problem-solving, and logical reasoning.
Candidates are expected to write, analyse, and trace algorithms, apply programming techniques to solve
problems, and interpret pseudo-code and code snippets in different contexts. By presenting each question
alongside its marking criteria, the resource clarifies examiner expectations, highlights the analytical and
problem-solving skills required for high-band responses, and guides learners in producing precise, well-
structured solutions. This integrated format supports targeted revision, strengthens computational
thinking, and prepares students thoroughly for the 2026 OCR GCSE Computer Science Computational
Thinking, Algorithms and Programming examination.
OCR is an exempt Charity
Turn over
, 2
Section A
We advise you to spend approximately 50 minutes on Section A.
1 A program asks a user to enter a number. Only integer values between 1 and 100 (inclusive) are
accepted. The program is tested.
(a) Tick (✓) one or more boxes in each row to identify the type or types of test for each example of
test data.
Invalid /
Example Normal Boundary
erroneous
test data test data test data
test data
27
"Hello"
105
100
[4]
(b) An algorithm is written for the program.
(i) Complete the algorithm for the program.
num = input("Enter a number between 1 and 100")
if num ........................................ AND ................... then
print("accepted")
........................................
print("not accepted")
endif
[3]
(ii) Give the identifier of one variable used in the algorithm in part (b)(i).
. ................................................................................................................................................. [1]
(iii) Give one Boolean operator used in the algorithm in part (b)(i).
. ................................................................................................................................................. [1]
© OCR 2025
, 3
2 This flowchart uses iteration.
Start
INPUT x
OUTPUT "OK"
x = x - 2
FALSE
IS x < 0?
TRUE
End
(a) Complete the table by identifying how many times "OK" will be output for when each value is input.
Input value Number of times "OK" is output
3
10
[2]
(b) Iteration is a programming construct.
(i) Identify and describe two different examples of iteration that can be used in a high-level
language.
1 .......................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
2 .......................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
[4]
© OCR 2025 Turn over
, 4
(ii) Give the names of two other programming constructs that are used in a high-level language.
1 .......................................................................................................................................................
2 .......................................................................................................................................................
[2]
(c) A programmer implements the flowchart as a program in a high-level language using an
Integrated Development Environment (IDE).
Identify and describe two tools that the programmer could use in the IDE to create a program
from the flowchart.
Tool 1 ................................................................................................................................................
Description .......................................................................................................................................
..........................................................................................................................................................
Tool 2 ................................................................................................................................................
Description .......................................................................................................................................
..........................................................................................................................................................
[4]
© OCR 2025