• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 20 pages
Exam (elaborations)

GCSE Computer Science OCR Paper 2 2026

Document preview thumbnail
Preview 3 out of 20 pages

GCSE Computer Science OCR Paper 2 2026

Content preview

Check Out ExamLab For More Resources : https://www.stuvia.com/user/examlab




Tuesday 19 May 2026 – Afternoon
GCSE (9–1) Computer Science
J277/02 Computational thinking, algorithms and programming
Time allowed: 1 hour 30 minutes

Do not use:
* 2 7 0 0 0 1 1 8 5 7 *




• a calculator




* J 2 7 7 0 2 *




Please write clearly in black ink. Do not write in the barcodes.

Centre number Candidate number


First name(s)

Last name


INSTRUCTIONS
• Use black ink.
• Write your answer to each question in the space provided. If you need extra space use
the lined pages 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 80.
• The marks for each question are shown in brackets [ ].
• This document has 20 pages.

ADVICE
• Read each question carefully before you start your answer.
• We advise you to spend approximately 50 minutes on Section A and approximately
40 minutes on Section B.




© Cambridge OCR 2026 [601/8355/X] Cambridge OCR is an exempt Charity
DC (ST/CT) 364929/4 Turn over



Check Out ExamLab For More Resources : https://www.stuvia.com/user/examlab

,Check Out ExamLab For More Resources : https://www.stuvia.com/user/examlab
2
BLANK PAGE




DO NOT WRITE ON THIS PAGE




© Cambridge OCR 2026




Check Out ExamLab For More Resources : https://www.stuvia.com/user/examlab

, Check Out ExamLab For More Resources : https://www.stuvia.com/user/examlab
3
Section A

We advise you to spend approximately 50 minutes on Section A.

1
(a) Complete the table to show the output from each algorithm.

Algorithm Output
num = 4
num = num + 2
print(num)




x = 9
x = 2
print(x)




a = 9
b = 8
if a < b then
print(a-1)
else
print(b-1)
endif
score = 1
while score < 50
score = score * 2
endwhile
print(score)



[4]

(b) Tick (✓) one box in each row to identify whether each identifier is valid or not valid for a variable
in a high-level language.

Identifier Valid Not valid

phonenumber

name22

new user

Top_ten
[2]
© Cambridge OCR 2026 Turn over



Check Out ExamLab For More Resources : https://www.stuvia.com/user/examlab

Document information

Study
School year
1
Uploaded on
September 25, 2026
Number of pages
20
Written in
2026/2027
Type
Exam (elaborations)
Contains
Only questions
$7.46

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
ExamLab
4.9
(20)
Sold
143
Followers
0
Items
45
Last sold
5 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

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

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions