Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 20 pages
Exam (elaborations)

GCSE (9–1) Computer Science J277/02 Computational thinking, algorithms and programming 2024

Document preview thumbnail
Preview 3 out of 20 pages

GCSE (9–1) Computer Science J277/02 Computational thinking, algorithms and programming GCSE (9–1) Computer Science J277/02 Computational thinking, algorithms and programmingGCSE (9–1) Computer Science J277/02 Computational thinking, algorithms and programming

Content preview

PMT




Oxford Cambridge and RSA

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

Do not use:
* 9 9 3 2 5 3 3 4 3 8 *




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




© OCR 2024 [601/8355/X] OCR is an exempt Charity
DC (ST) 326517/4 Turn over

, PMT


2
SECTION A

1 (a) The table contains four statements about programming languages.

Tick (3) one box in each row to identify whether each statement describes a low-level
programming language or a high-level programming language.

Statement Low-level High-level
The same language can be used on
computers that use different hardware
It allows the user to directly manipulate
memory
It allows the user to write English-like
words
It always needs to be translated into
object code or machine code
[4]

(b) The variables num1 and num2 store integers.

Write pseudocode to add the integers stored in num1 and num2. Store the result in a
variable with the identifier total

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

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

(c) Three incomplete pseudocode algorithms are given with a description of the purpose of each
algorithm.

Write the missing arithmetic operator for each algorithm.

(i) Outputting 12 to the power of 2.

print(12 ……………… 2) [1]

(ii) Working out if a number is odd or even.

number = 53
if number ……………… 2 == 0 then
print("Even number")
else
print("Odd number")
endif [1]




© OCR 2023

, PMT


3
(iii) Finding the difference between two measurements.

measurement1 = 300

measurement2 = 100

difference = measurement1 ……………… measurement2 [1]

(d) Read the following pseudocode algorithm:

01 start = 3
02 do
03 print(start)
04 start = start - 1
05 until start == -1
06 print("Finished")

Complete the following trace table for the given algorithm.

Line number start Output




[3]
© OCR 2023 Turn over

Document information

Uploaded on
March 11, 2025
Number of pages
20
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

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

Sold
0
Followers
0
Items
80
Last sold
-



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

Working on your references?

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

Working on your references?

Frequently asked questions