Past paper – A Level Computer Science (9618)
Cambridge International AS & A Level · 9618
Computer Science · Paper 33
Oct/Nov 2025 · 9618/33/O/N/25
Answer on paper, open each mark scheme and give yourself marks, then open the Summary.
Question text
1
(a) An enumerated data type, Spectrum, is required to hold the names of colours.
(i)
Write the pseudocode statement for the type declaration of Spectrum to hold the
names of the colours available:
Red, Orange, Yellow, Green, Blue, Indigo, Violet.
…
… [2]
(ii)
Identify two characteristics of the list of values given in an enumerated data type
declaration.
1 …
…
2 …
…
[2]
(b) ColourData is a composite data type to store definitions of colours.
Write pseudocode statements to declare ColourData to hold the following fields:
Field
Example data
XYZ12345
ColourCode
Red
Colour
650
Wavelength
4.62
Frequency
Yes
PrimaryColour
Use the most appropriate data type in each case, including the enumerated data type
Spectrum from part a(i).
…
…
…
…
…
…
…
… [4]
ĬÕú¾Ġ´íÈõÏĪÅĊÝû·þ×
Question text
2
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
•
2 bytes in total.
(a) Outline the effect of changing the number of bits used to store the mantissa to 10 bits, in this
system.
…
…
…
…
…
… [3]
(b) Describe one example of a situation that could cause an overflow to occur and the
consequences of such an overflow.
…
…
…
…
…
… [3]
Question text
3
Describe how packet switching is used to pass messages across a network. Do not include
checking for completeness and resending packets in your answer.
…
…
…
…
…
…
…
… [4]
Ĭ×ú¾Ġ´íÈõÏĪÅĊÝù·þ×
Question text
4
Identify and describe three protocols that are used in the Application Layer of the TCP/IP protocol
suite.
Protocol 1 …
Description …
…
…
Protocol 2 …
Description …
…
…
Protocol 3 …
Description …
…
…
[6]
Question text
5
(a) State the purpose of multi‑tasking.
…
… [1]
(b) Explain how an operating system ensures that multi‑tasking operates efficiently.
…
…
…
…
…
… [3]
ĬÕú¾Ġ´íÈõÏĪÅĊßû·Ā×
Question text
6
(a) The Karnaugh map (K‑map) represents a logic circuit with four inputs.
AB
CD
00
01
11
10
00
0
0
0
0
01
1
1
1
0
11
0
1
1
1
10
0
0
1
1
(i)
Draw loop(s) around appropriate group(s) in the K‑map to produce an optimal
sum‑of‑products.
[3]
(ii)
Write the Boolean expression from your answer to part a(i) as a simplified sum‑of‑products.
Do not carry out any further simplification.
…
… [2]
(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]
Ĭ×ú¾Ġ´íÈõÏĪÅĊßù·Ā×
Question text
7
(a) Outline the process of optimisation during the compilation of a program.
…
…
…
… [2]
(b) Write the Reverse Polish Notation (RPN) for the given infix expression:
((6 + 12) / (16 – 10)) * 18
…
…
…
…
…
… [3]
(c) The RPN expression
c a – b d + * b c + /
is to be evaluated, where:
a = 4, b = 12, c = 24 and d = 6.
Show the changing contents of the stack as the RPN expression is evaluated.
[4]
ĬÙú¾Ġ´íÈõÏĪÅĊÞù¶þ×
Question text
8
Calculate the shortest distance between the Start node and each of the nodes in the graph using
Dijkstra’s algorithm.
Show your working on the graph or in the working space. Write your answers in the table provided.
V
4
9
T
X
3
5
W
3
6
10
Y
22
8
Start
Z
Working …
…
…
…
…
…
Answers:
T
V
W
X
Y
Z
[5]
ĬÛú¾Ġ´íÈõÏĪÅĊÞû¶þ×
Question text
9
A company requires a digital certificate to ensure the authenticity of its online communications.
Outline the process followed to acquire a digital certificate.
…
…
…
…
…
…
…
…
…
… [4]
Question text
10 A stack, StackArray, is to be implemented using pseudocode, to store a maximum of 100 string
items in an appropriate array. Declarations are required so that the stack has a beginning, an end
and a maximum size. An array is also required to store the data.
(a) Write pseudocode to declare the variables, constant and array required to implement the
stack.
…
…
…
…
…
… [3]
(b) Write pseudocode for a procedure to initialise the top and bottom pointers of the stack to
appropriate values.
…
…
…
…
…
… [3]
ĬÙú¾Ġ´íÈõÏĪÅĊàù¶Ā×
Question text
11
Describe when the use of recursion would be beneficial and give an example.
Description …
…
…
…
Example …
…
[3]
Question text
12 An exception can occur when running a program.
(a) Explain what is meant by an exception.
…
…
…
…
…
… [3]
(b) Identify one example of an exception and give one reason why the exception may cause a
problem.
Example …
…
Reason …
…
[2]
ĬÛú¾Ġ´íÈõÏĪÅĊàû¶Ā×
Question text
13 The table shows assembly language instructions for a processor that has one register, the
Accumulator (ACC).
Instruction
Label
Opcode
Operand
Explanation
LDM #n
Load the number n to the ACC
Load the contents of the location at the given
LDD <address>
address to the ACC
The address to be used is at the given address.
LDI <address>
Load the contents of this second address to
the ACC
Add the contents of the given address to the
ADD <address>
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 the ACC at the given
STO <address>
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
Contents
125
563
63
899
ĬÙú¾Ġ´íÈõÏĪÅĊÝù¸þ×
,
,
Write assembly language code, using only the given instruction set to:
•
store the denary value 250 as labelled variable X
•
store the value stored in location 563 as labelled variable Y
•
add the value stored in variable X to the value stored in variable Y
•
subtract the value stored in location 899 from the current value in the Accumulator
•
store the result in variable Total.
Show the initialisation and values of the variables X, Y and Total in the table provided.
…
…
…
…
…
…
…
…
Label
Content
[7]
ĬÛú¾Ġ´íÈõÏĪÅĊÝû¸þ×
,
,
Permission to reproduce items where third‑party owned material protected by copyright is included has been sought and cleared where possible. Every
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 acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge
ĬÙú¾Ġ´íÈõÏĪÅĊßù¸Ā×