GCSE (9–1) Computer Science
J277/02 Computational thinking, algorithms and programming
Time allowed: 1 hour 30 minutes
INSTRUCTIONS
• Use black
... [Show More] 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 2023 [601/8355/X]
DC (ST) 326517/4
OCR is an exempt Charity
Turn over
Do not use:
• a calculator
2
© OCR 2023
SECTION A
1 (a) The table contains four statements about programming languages.
Tick (✓) 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]
3
© OCR 2023 Turn over
(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 [Show Less]