Past paper – A Level Computer Science (9618)
Cambridge International AS & A Level · 9618
Computer Science · Paper 33
May/June 2026 · 9618/33/M/J/26
Answer on paper, open each mark scheme and give yourself marks, then open the Summary.
Question text
1
(a) User‑defined data types may be created by programmers when writing software.
Explain the reasons why user‑defined data types are needed.
…
…
…
…
…
… [3]
(b) Write the pseudocode statement to declare a non‑composite data type, Fibonacci, that
holds the following numbers:
0, 1, 2, 3, 5, 8, 13, 21
…
…
…
… [2]
Question text
2
Complete the following paragraph using the most appropriate words from the given list.
Some words are not used.
adjacent
Application
BitTorrent
corresponding
Internet
layer
Link
lower
protocol
route
Transport
upper
The implementation of a … suite can be viewed as a stack. Each
… of the stack has its own specific functionality and can only
communicate with … layers of the stack. User interaction is
associated with the highest level of the stack, which is the … layer.
[4]
© Cambridge University Press & Assessment 2026
Question text
3
(a) State one example of where serial file organisation could be used.
…
… [1]
(b) Describe how records are organised in serial files.
…
…
…
… [2]
(c) Outline the process that is used to find a record in a serial file.
…
…
…
…
…
… [3]
© Cambridge University Press & Assessment 2026
Question text
4
(a) Describe the characteristics of massively parallel computers.
…
…
…
…
…
… [3]
(b) State one difference and one similarity between the SIMD and MISD computer architectures.
difference …
…
…
similarity …
…
…
[2]
© Cambridge University Press & Assessment 2026
Question text
5
Numbers are stored in a computer system using binary floating‑point representation with:
•
12 bits for the mantissa
•
4 bits for the exponent
•
two’s complement form for both the mantissa and the exponent.
(a) Calculate the normalised binary floating‑point representation of –18.5625 in this system.
Show your working.
mantissa
exponent
working …
…
…
…
…
…
[4]
(b) Explain the problem that would occur if the two binary floating‑point numbers representing
the denary numbers 91.5 and 123.25 were added together and the result stored in the
given system.
…
…
…
…
…
… [3]
© Cambridge University Press & Assessment 2026
Question text
6
(a) The Karnaugh map (K‑map) represents a logic circuit with four inputs.
AB
CD
00
01
11
10
00
0
1
1
0
01
0
1
0
0
11
0
1
0
0
10
0
1
1
0
(i)
Draw loop(s) around appropriate group(s) in the K‑map to produce an
optimal sum‑of‑products.
[2]
(ii)
Write the Boolean expression from your answer to 6(a)(i) as a simplified
sum‑of‑products. Do not carry out any further simplification.
…
… [2]
(iii)
Write the Boolean expression from your answer to 6(a)(ii) in its simplest form by using
Boolean algebra to simplify it.
… [1]
(b) Simplify the following expression using De Morgan’s laws and Boolean algebra.
Show all the stages in your simplification.
X = A + B + C + B + C
…
…
…
…
…
… [3]
© Cambridge University Press & Assessment 2026
Question text
7
(a) Outline the process of using a stack to evaluate an expression written using Reverse Polish
Notation (RPN).
…
…
…
…
…
…
…
… [3]
(b) Write the following infix expression in RPN.
((18 – 15 + 3) * 5) / 12
…
…
…
… [2]
(c) The RPN expression
16
3 * 36
6 / 18
6 - * +
is to be evaluated.
Show the changing contents of the stack as the RPN expression is evaluated.
[4]
© Cambridge University Press & Assessment 2026
Question text
8
(a) Describe the purpose of quantum cryptography.
…
…
…
… [2]
(b) Outline two benefits and two drawbacks of quantum cryptography.
benefit 1 …
…
…
benefit 2 …
…
…
drawback 1 …
…
…
drawback 2 …
…
…
[4]
Question text
9
(a) Explain what is meant by regression methods in relation to machine learning.
…
…
…
…
…
… [3]
© Cambridge University Press & Assessment 2026
,
,
(b) The A* algorithm is used to perform searches on a graph.
Calculate the best path between the W and E nodes on the following diagram using the
A* algorithm.
Show your working in the table provided.
The first two rows have been done for you.
3
N6
h=15
12
3
4
N1
7
E
N5
11
g=6
3
12
2
7
18
W
4
14
N4
N2
9
7
4
2
N3
13
© Cambridge University Press & Assessment 2026
,
,
cost of
heuristic
total
destination
current path
current path
(h)
(f = g + h)
node
(g)
W
W
0
18
18
W
N1
6
15
21
final path
[5]
© Cambridge University Press & Assessment 2026
Question text
10 (a) A program declares a 1D array globally as PartName[1:1000000] OF STRING, and sorts
its contents in ascending alphabetical order. The function PartSearch performs a binary
search on the array. The item to be found is passed as a parameter. If it is found, its location
in the array is returned, otherwise, –1 is returned.
(i)
Complete the following table to define the variables used in the function.
identifier
data type
description
Left
Right
Mid
Target
[2]
© Cambridge University Press & Assessment 2026
,
,
(ii)
Complete the pseudocode for the function to perform a binary search on PartName
using all the variables from the table in 10(a)(i).
Some lines may be left blank.
FUNCTION PartSearch( …
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
ENDFUNCTION
[5]
(b) Describe how the time efficiency of a binary search changes as the number of items in the
search list increases. Refer to Big O notation in your answer.
…
…
…
… [2]
© Cambridge Unive
Question text
11
The table shows assembly language instructions for a processor that has one register, the
Accumulator (ACC).
instruction
label
explanation
opcode
operand
LDM
#n
Load the number n to ACC
Load the contents of the location at the given
LDD
<address>
address to ACC
The address to be used is at the given
LDI
<address>
address. Load the contents of this second
address to ACC
Add the contents of the given address to
ADD
<address>
the ACC
ADD
#n
Add the number n to the ACC
Subtract the contents of the given address
SUB
<address>
from the ACC
SUB
#n
Subtract the number n from the ACC
Store the contents of ACC at the
STO
<address>
given address
Gives a symbolic address <label> to the
<label>:
<data>
memory location with the contents <data>
# denotes a denary number, e.g. #123
<label> can be used in place of <address>
The current contents of memory are:
address
data
232
120
580
26
© Cambridge University Press & Assessment 2026
,
,
(a) Use only the given instruction set to write assembly language code to:
•
store the denary value 325 in labelled variable A
•
store the value from location 232 in labelled variable B
•
subtract the value 50 from the value stored in variable B
•
store the current value in the accumulator in location 875
•
add the value stored in location 580 to the value stored in variable A
•
subtract the value stored in location 875 from the current value in the accumulator
•
store the result in variable Final.
…
…
…
…
…
…
…
…
…
…
…
… [5]
(b) Show the values of the variables A, B and Final from 11(a) in the following table, after the
code has been run:
label
data
A:
B:
Final:
[3]
© Cambridge University Press & Assessment 2026
,
,
Permission to reproduce items where third‑party owned material protected by copyright is included has been sought and cleared where possible. Every
reasonable effort has been made by the publisher (Cambridge University Press & Assessment) to trace copyright holders, but if any items requiring clearance
have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer‑related information to candidates, all copyright acknowledgemen