Past paper – A Level Computer Science (9618)

Cambridge International AS & A Level · 9618

Computer Science · Paper 32

May/June 2026 · 9618/32/M/J/26

Questions11
Marks75
TypeWritten

Answer on paper, open each mark scheme and give yourself marks, then open the Summary.

0 / 0Answer a question to start your score.
Saved 0
Advertisement
1
9618/32/M/J/26 · Question 1May/June 2026Paper 325 marks
Loading question…
Question text

1
A user-defined data type is required to store the types of animals in a children’s zoo.
(a) Write the pseudocode statement to declare a non-composite data type, Animals, that holds
the following data:
Alpaca, Chicken, Donkey, Duck, Goat, Pony, Sheep
…
…
…
… [2]
(b) (i)
State the type of user-defined non-composite data type created in 1(a).
… [1]
(ii)
Give two features that would apply to any list used in the data type in 1(a).
1 …
…
2 …
…
[2]

2
9618/32/M/J/26 · Question 2May/June 2026Paper 324 marks
Loading question…
Question text

2
Complete the following paragraph using the most appropriate words from the given list.
Some words are not used.
application
controls
disconnects
four
interconnects
internet
link
lists
many
packets
seven
transport
The TCP/IP protocol suite consists of … layers which can be thought of as
a stack. It is designed to send … of data across the internet. It is also used
as a communications protocol to ensure accurate delivery of data over private networks.
The lowest layer of the stack is the … layer. This is the layer that
… nodes in the network.
[4]
© Cambridge University Press & Assessment 2026

3
9618/32/M/J/26 · Question 3May/June 2026Paper 325 marks
Loading question…
Question text

3
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 denary value of the given normalised binary floating-point number.
Show your working.
mantissa
exponent
1
0
1
1
0
1
0
0
0
1
1
0
0
1
1
0
working …
…
…
…
…
denary value …
[3]
(b) Describe one example of a situation that could cause underflow to occur and the
consequences of this underflow.
…
…
…
… [2]
© Cambridge University Press & Assessment 2026

Advertisement
4
9618/32/M/J/26 · Question 4May/June 2026Paper 326 marks
Loading question…
Question text

4
(a) State one example of where sequential file organisation could be used.
…
… [1]
(b) Describe how records are organised in sequential files.
…
…
…
… [2]
(c) Outline the process of sequential file access to find a record in a sequential file.
…
…
…
…
…
… [3]

5
9618/32/M/J/26 · Question 5May/June 2026Paper 324 marks
Loading question…
Question text

5
Explain what is meant by the term virtual machine.
…
…
…
…
…
…
…
… [4]
© Cambridge University Press & Assessment 2026

6
9618/32/M/J/26 · Question 6May/June 2026Paper 329 marks
Loading question…
Question text

6
(a) Write this infix expression in Reverse Polish Notation (RPN).
16 + ((9 – 7) / (18 + 6))
…
…
…
… [2]
(b) Write this RPN expression in infix form.
6
15 + 20
3 - - 27
9 * /
…
…
…
…
…
… [3]
(c) The RPN expression
c a b - * b c + / d *
is to be evaluated, where:
a = 8, b = 2, c = 10 and d = 18.
Show the changing contents of the stack as the RPN expression is evaluated.
[4]
© Cambridge University Press & Assessment 2026

7
9618/32/M/J/26 · Question 7May/June 2026Paper 328 marks
Loading question…
Question text

7
This truth table represents a logic circuit.
INPUT
OUTPUT
A
B
C
D
Z
0
0
0
0
0
0
0
0
1
1
0
0
1
0
0
0
0
1
1
0
0
1
0
0
1
0
1
0
1
1
0
1
1
0
1
0
1
1
1
1
1
0
0
0
0
1
0
0
1
1
1
0
1
0
0
1
0
1
1
0
1
1
0
0
1
1
1
0
1
1
1
1
1
0
1
1
1
1
1
1
(a) (i)
Complete the Karnaugh map (K-map) for the given truth table.
AB
01
11
10
00
CD
00
01
11
10
[2]
© Cambridge University Press & Assessment 2026
,
,
(ii)
Draw loop(s) around appropriate group(s) in the K-map to produce an optimal
sum-of-products.
[2]
(iii)
Write the Boolean expression from your answer to 7(a)(ii) as a
simplified sum-of-products.
…
… [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.D + A.D
…
…
…
…
…
… [3]
© Cambridge University Press & Assessment 2026

8
9618/32/M/J/26 · Question 8May/June 2026Paper 327 marks
Loading question…
Question text

8
(a) Describe the differences between symmetric key and asymmetric key cryptography.
…
…
…
…
…
… [3]
(b) Outline the process that would allow a business to use encryption keys to send a verified
message to a group of people.
…
…
…
…
…
…
…
… [4]

Advertisement
9
9618/32/M/J/26 · Question 9May/June 2026Paper 329 marks
Loading question…
Question text

9
(a) State the subset of Artificial Intelligence (AI) which makes use of an artificial neural network.
… [1]
(b) The A* and Dijkstra’s algorithms are used to perform searches on a graph.
(i)
Outline how the A* algorithm is different from Dijkstra’s algorithm.
…
…
…
…
…
… [3]
© Cambridge University Press & Assessment 2026
,
,
(ii)
Calculate the best path between the Home node and each of the nodes in the diagram
using Dijkstra’s algorithm.
Show your working and write your answers in the table provided.
C
12
4
B
D
3
8
A
6
7
8
6
16
3
F
Home
E
working …
…
…
…
…
…
…
…
…
…
Answers:
A
B
C
D
E
F
[5]
© Cambridge University Press & Assessment 2026

10
9618/32/M/J/26 · Question 10May/June 2026Paper 329 marks
Loading question…
Question text

10 (a) Two examples of searching algorithms are a linear search and a binary search.
Describe how increasing the number of data items in the file to be searched affects the time
efficiency of these search algorithms. Refer to Big O notation in your answer.
…
…
…
…
…
… [3]
© Cambridge University Press & Assessment 2026
,
,
(b) A temperature in degrees Celsius (°C) is recorded every minute for one day in a random
file, Temperatures.dat.
A function is required to find the temperature for a specific time in the day to check if it
was freezing. The position of each temperature in the file corresponds to the number
of minutes after midnight, for example, the temperature at 10:00 am would be stored at
position 600 (10 × 60).
Write the pseudocode to complete the algorithm to check a temperature stored in
Temperatures.dat, by passing its position in the file as a parameter and using file
handling commands to find the relevant data item. Once the temperature is found, it is
checked to see if it is above or below freezing, and an appropriate message is returned.
Some of the blank lines may not be used.
FUNCTION TempCheck( …
DECLARE Temperature : REAL
DECLARE Response : STRING
OPENFILE …
…
…
…
…
…
…
…
…
…
…
…
ENDFUNCTION
[6]
© Cambridge University Press & Assessment 2026

11
9618/32/M/J/26 · Question 11May/June 2026Paper 329 marks
Loading question…
Question text

11
(a) Object-Oriented Programming (OOP) is used to design a class called Node.
A partial design of the Node class includes the STRING attribute Content and the INTEGER
attribute Pointer, together with their getters and setters.
The class also includes a constructor, with two parameters, to set the values of
these attributes.
Write pseudocode statements to declare the Node class, its attributes and the constructor.
…
…
…
…
…
…
…
…
…
… [5]
© Cambridge University Press & Assessment 2026
,
,
(b) Complete the table by filling in the missing OOP terms and descriptions.
OOP term
description
A method used to change values in private attributes in
…
a class.
…
An occurrence of a class during the execution of a program.
…
aggregation
…
…
…
inheritance
…
…
[4]
© 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 acknowledgements are reproduced online in our 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 International Education is the name of our awarding body and a part of Cambridge University Press & Assessment, which is a department of the
University of Cambridge.
© Cambridge University Press & Assessment 2026

Advertisement