Artificial Intelligence – A Level Computer Science (9618)
23 questions · page 1 of 2
Question text
9
(a) Explain how supervised learning and unsupervised learning are trained.
…
…
…
…
…
…
…
… [4]
© Cambridge University Press & Assessment 2026
,
,
(b) Calculate the best path between the Begin node and each of the nodes in the diagram using
Dijkstra’s algorithm.
Show your working and write your answers in the table provided.
S
5
Q
8
R
5
2
3
P
6
6
9
T
4
21
Begin
U
working …
…
…
…
…
…
…
…
…
…
answers:
P
Q
R
S
T
U
[5]
© Cambridge University Press & Assessment 2026
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
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
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
Question text
7
(a) Identify one Artificial Intelligence (AI) algorithm to find the shortest distance between two
points on a graph.
…
… [1]
(b) Describe Deep Learning.
…
…
…
…
…
…
…
…
…
… [5]
ĬÛú¾Ġ´íÈõÏĪÅĊßùµþ×
Question text
9
(a) Deep Learning is a form of Machine Learning.
(i)
State one example where Deep Learning is used.
…
… [1]
(ii)
Identify how Deep Learning can be made more effective.
…
… [1]
(b) Describe the back propagation of errors method in Machine Learning.
…
…
…
…
…
…
…
… [4]
Question text
11
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 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
Subtract the contents of the given address
SUB <address>
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
26
150
86
300
150
420
ĬÑĊ®Ġ´íÈõÏĪÅĊÞû·þ×
,
,
Write assembly language code, using only the given instruction set to:
•
store the contents of location 300 as labelled variable A
•
store the contents of location 420 as labelled variable B
•
add the value stored in the address contained in variable B to the value contained in
variable A
•
store the result in variable Answer.
Show the initialisation and values of the variables A, B and Answer in the table provided.
…
…
…
…
…
…
…
…
Label
Content
[7]
ĬÓĊ®Ġ´íÈõÏĪÅĊÞù·þ×
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
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
ĬÙú¾Ġ´íÈõÏĪÅĊßù¸Ā×
Question text
10 (a) Describe the purpose of a graph when used in an Artificial Intelligence (AI) system.
…
…
…
… [2]
(b) Explain the use of artificial neural networks in Deep Learning.
…
…
…
…
…
…
…
… [4]
ĬÓĊ®Ġ´íÈõÏĪÅĊàù¸þ×
Question text
6
(a) Describe the structure of a graph as used in an Artificial Intelligence (AI) system.
…
…
…
… [2]
(b) Explain how supervised learning and unsupervised learning differ from each other.
…
…
…
…
…
…
…
… [4]
ĬÏĊ®Ġ´íÈõÏĪÅĊàù·Ā×
Question text
10 (a) State the purpose of the A* and Dijkstra’s algorithms.
…
… [1]
(b) Outline the difference between the A* and Dijkstra’s algorithms.
…
…
…
… [2]
(c) Explain how unsupervised learning takes place in machine learning.
…
…
…
…
…
… [3]
ĬÑĊ®Ġ´íÈõÏĪÅĊßü¸Ā×
Question text
9
Explain what is meant by Deep Learning in relation to Artificial Intelligence (AI).
…
…
…
…
…
… [3]
Question text
11
Explain what is meant by Reinforcement Learning in relation to Artificial Intelligence.
…
…
…
…
…
… [3]
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
Question text
9
Explain what is meant by Deep Learning in relation to Artificial Intelligence (AI).
…
…
…
…
…
… [3]