Computer Science (9618) · Oct/Nov 2025 · Question paper 33
Cambridge Computer Science (9618) question paper for paper 33, Oct/Nov 2025 — 9618/33/O/N/25, file 9618_w25_qp_33.pdf.
Text of this paper
DFD
* 0000800000001 *
,
www.dynamicpapers.com
,
Cambridge International AS & A Level
¬Wz> 4mHuOªE`y5W
¬:yP« mMufC}
¥U U5u U¥¥ EUeU¥U
* 2 1 3 4 2 7 7 1 2 1 *
COMPUTER SCIENCE
9618/33
Paper 3 Advanced Theory
October/November 2025
1 hour 30 minutes
You must answer on the question paper.
No additional materials are needed.
INSTRUCTIONS
●
Answer all questions.
●
Use a black or dark blue pen.
●
Write your name, centre number and candidate number in the boxes at the top of the page.
●
Write your answer to each question in the space provided.
●
Do not use an erasable pen or correction fluid.
●
Do not write on any bar codes.
●
You may use an HB pencil for any diagrams, graphs or rough working.
●
Calculators must not be used in this paper.
INFORMATION
●
The total mark for this paper is 75.
●
The number of marks for each question or part question is shown in brackets [ ].
●
No marks will be awarded for using brand names of software packages or hardware.
This document has 12 pages. Any blank pages are indicated.
DC (PB/SW) 346646/2
© UCLES 2025
[Turn over
www.dynamicpapers.com
2
,
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.
DO NOT WRITE IN THIS MARGIN
DFD
* 0000800000002 *
(ii)
Identify two characteristics of the list of values given in an enumerated data type
declaration.
1
2
DO NOT WRITE IN THIS MARGIN
[2]
Write pseudocode statements to declare ColourData to hold the following fields:
Field
Example data
ColourCode
XYZ12345
Colour
Red
Wavelength
650
Frequency
4.62
PrimaryColour
Yes
Use the most appropriate data type in each case, including the enumerated data type
Spectrum from part a(i).
DO NOT WRITE IN THIS MARGIN
(b) ColourData is a composite data type to store definitions of colours.
DO NOT WRITE IN THIS MARGIN
[2]
[4]
© UCLES 2025
ĬÕú¾Ġ´íÈõÏĪÅĊÝû·þ×
Ĭĉ¼úÍğāěæõăÉû÷ëéĂĂ
ĥąĕÕõĕŵååµÅÅĕÅĕÅÕ
9618/33/O/N/25
DO NOT WRITE IN THIS MARGIN
DFD
www.dynamicpapers.com
3
,
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.
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
* 0000800000003 *
[3]
DO NOT WRITE IN THIS MARGIN
(b) Describe one example of a situation that could cause an overflow to occur and the
consequences of such an overflow.
DO NOT WRITE IN THIS MARGIN
[3]
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.
DO NOT WRITE IN THIS MARGIN
[4]
© UCLES 2025
Ĭ×ú¾Ġ´íÈõÏĪÅĊÝù·þ×
Ĭĉ»ùÕĩýīÓăîĀßÿïéòĂ
ĥąĥĕµõåÕµÕĥÅÅõåÕÕÕ
9618/33/O/N/25
[Turn over
www.dynamicpapers.com
4
,
4
,
Identify and describe three protocols that are used in the Application Layer of the TCP/IP protocol
suite.
Protocol 1
Description
DO NOT WRITE IN THIS MARGIN
DFD
* 0000800000004 *
Protocol 2
Description
Protocol 3
DO NOT WRITE IN THIS MARGIN
[6]
5
(a) State the purpose of multi‑tasking.
[1]
DO NOT WRITE IN THIS MARGIN
Description
DO NOT WRITE IN THIS MARGIN
(b) Explain how an operating system ensures that multi‑tasking operates efficiently.
© UCLES 2025
ĬÕú¾Ġ´íÈõÏĪÅĊßû·Ā×
Ĭĉ»üÕģïĞèýõćýã͹ĊĂ
ĥµµĕõõåõÕõĕÅąõąÕÅÕ
9618/33/O/N/25
DO NOT WRITE IN THIS MARGIN
[3]
DFD
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
* 0000800000005 *
www.dynamicpapers.com
5
,
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.
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
X = A+B+C+B+C
[3]
© UCLES 2025
Ĭ×ú¾Ġ´íÈõÏĪÅĊßù·Ā×
Ĭĉ¼ûÍĥóĎÑûČÂÙÛĉ¹úĂ
ĥµÅÕµĕÅĕÅąÅÅąĕĥĕÕÕ
9618/33/O/N/25
[Turn over
www.dynamicpapers.com
6
,
7
,
(a) Outline the process of optimisation during the compilation of a program.
DO NOT WRITE IN THIS MARGIN
DFD
* 0000800000006 *
(b) Write the Reverse Polish Notation (RPN) for the given infix expression:
((6 + 12) / (16 – 10)) * 18
DO NOT WRITE IN THIS MARGIN
[2]
[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.
DO NOT WRITE IN THIS MARGIN
© UCLES 2025
ĬÙú¾Ġ´íÈõÏĪÅĊÞù¶þ×
Ĭĉ»ûÒğěĘÙðù»¹ãĬđĊĂ
ĥĥĥÕµµÅµąĥĥÅÅĕÅÕąÕ
9618/33/O/N/25
DO NOT WRITE IN THIS MARGIN
[4]
DO NOT WRITE IN THIS MARGIN
Show the changing contents of the stack as the RPN expression is evaluated.
DFD
DO NOT WRITE IN THIS MARGIN
* 0000800000007 *
www.dynamicpapers.com
7
,
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
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
4
9
T
X
3
5
W
3
6
10
Y
22
8
Start
Z
Working
DO NOT WRITE IN THIS MARGIN
Answers:
DO NOT WRITE IN THIS MARGIN
T
V
W
X
Y
Z
[5]
© UCLES 2025
ĬÛú¾Ġ´íÈõÏĪÅĊÞû¶þ×
Ĭĉ¼üÚĩėĨàĊĈîĝÛ°đúĂ
ĥĥĕĕõÕåÕĕĕµÅÅõåĕĕÕ
9618/33/O/N/25
[Turn over
www.dynamicpapers.com
8
,
9
,
A company requires a digital certificate to ensure the authenticity of its online communications.
Outline the process followed to acquire a digital certificate.
DO NOT WRITE IN THIS MARGIN
DFD
* 0000800000008 *
DO NOT WRITE IN THIS MARGIN
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.
DO NOT WRITE IN THIS MARGIN
[4]
[3]
(b) Write pseudocode for a procedure to initialise the top and bottom pointers of the stack to
appropriate values.
DO NOT WRITE IN THIS MARGIN
[3]
© UCLES 2025
ĬÙú¾Ġ´íÈõÏĪÅĊàù¶Ā×
Ĭĉ¼ùÚģĥġÛĈÿõ¿÷ĎāĂĂ
ĥÕÅĕµÕåõõµÅÅąõąĕąÕ
9618/33/O/N/25
DO NOT WRITE IN THIS MARGIN
DFD
DO NOT WRITE IN THIS MARGIN
* 0000800000009 *
www.dynamicpapers.com
9
,
11
,
Describe when the use of recursion would be beneficial and give an example.
Description
DO NOT WRITE IN THIS MARGIN
Example
[3]
12 An exception can occur when running a program.
(a) Explain what is meant by an exception.
DO NOT WRITE IN THIS MARGIN
[3]
(b) Identify one example of an exception and give one reason why the exception may cause a
problem.
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
Example
Reason
[2]
© UCLES 2025
ĬÛú¾Ġ´íÈõÏĪÅĊàû¶Ā×
Ĭĉ»úÒĥĩđÞòò´ěÿÊāòĂ
ĥÕµÕõµÅĕĥÅĕÅąĕĥÕĕÕ
9618/33/O/N/25
[Turn over
13 The table shows assembly language instructions for a processor that has one register, the
Accumulator (ACC).
Instruction
Label
Opcode
Operand
LDM #n
Explanation
Load the number n to the ACC
LDD <address>
LDI <address>
ADD <address>
Load the contents of the location at the given
address to the ACC
The address to be used is at the given address.
Load the contents of this second address to
the ACC
Add the contents of the given address to the
ACC
ADD #n
Add the number n to the ACC
SUB <address>
Subtract the contents of the given address
from the ACC
SUB #n
Subtract the number n from the ACC
STO <address>
<label>:
<data>
Store the contents of the ACC at the given
address
Gives a symbolic address <label> to the
memory location with the contents <data>
# denotes a denary number, e.g. #123
<label> can be used in place of <address>
Address
Contents
563
125
899
63
© UCLES 2025
ĬÙú¾Ġ´íÈõÏĪÅĊÝù¸þ×
Ĭĉ¹ùÓġĝ÷ÕÿĈÏãõú¹úĂ
ĥąåÕµÕąõÕąÅąąÕąĕµÕ
DO NOT WRITE IN THIS MARGIN
The current contents of memory are:
DO NOT WRITE IN THIS MARGIN
,
DO NOT WRITE IN THIS MARGIN
10
,
DO NOT WRITE IN THIS MARGIN
www.dynamicpapers.com
9618/33/O/N/25
DO NOT WRITE IN THIS MARGIN
DFD
* 0000800000010 *
DFD
DO NOT WRITE IN THIS MARGIN
* 0000800000011 *
www.dynamicpapers.com
11
,
,
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.
DO NOT WRITE IN THIS MARGIN
Show the initialisation and values of the variables X, Y and Total in the table provided.
Label
Content
[7]
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
© UCLES 2025
ĬÛú¾Ġ´íÈõÏĪÅĊÝû¸þ×
ĬĉºúÛħġćäùùĚ÷ýÞ¹ĊĂ
ĥąÕĕõµĥĕÅõĕąąµĥÕåÕ
9618/33/O/N/25
www.dynamicpapers.com
12
,
,
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 (UCLES) 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 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
Local Examinations Syndicate (UCLES), which is a department of the University of Cambridge.
© UCLES 2025
ĬÙú¾Ġ´íÈõÏĪÅĊßù¸Ā×
ĬĉºûÛĝēĂ×÷òđÕáĀéòĂ
ĥµąĕµµĥµåÕĥąÅµÅÕµÕ
9618/33/O/N/25
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
BLANK PAGE
DO NOT WRITE IN THIS MARGIN
DFD
* 0000800000012 *