Past paper – A Level Computer Science (9618)
Cambridge International AS & A Level · 9618
Computer Science · Paper 12
May/June 2025 · 9618/12/M/J/25
Answer on paper, open each mark scheme and give yourself marks, then open the Summary.
Question text
1
(a) The table has six statements about the Von Neumann model for a computer system.
Three of the statements are incorrect.
Statement number
Statement
The Program Counter (PC) stores the next instruction to be fetched from
1
memory.
The Arithmetic and Logic Unit (ALU) performs mathematical and logical
2
operations.
3
The Control Unit (CU) sends signals to other components on the data bus.
The Memory Data Register (MDR) transfers data to the memory address
4
stored in the Memory Address Register (MAR).
5
The MAR stores an address from memory.
6
The Accumulator (ACC) stores the result of calculations.
Complete the table by writing the three incorrect statement numbers and the corrected
statements.
Incorrect
Corrected statement
statement number
…
…
…
…
…
…
…
…
…
…
…
…
[3]
ĬÍĊ®Ġ´íÈõÏĪÅĊÝü¸þ×
,
,
(b) Registers that are used in the Fetch-Execute (F-E) cycle include the PC, MAR, MDR and the
ACC.
Identify one other register and describe its role in the Fetch-Execute (F-E) cycle.
Register …
Role …
…
[2]
(c) Explain how an interrupt from an input device will be detected and handled in the F-E cycle.
…
…
…
…
…
…
…
… [4]
ĬÏĊ®Ġ´íÈõÏĪÅĊÝú¸þ×
Question text
2
(a) Convert the denary integer 558 into 12-bit binary and hexadecimal.
Binary …
Hexadecimal …
[2]
Convert the two’s complement binary integer 11100010 into denary.
(b) (i)
…
…
… [1]
(ii)
Write the smallest and the largest two’s complement binary integers that can be
represented in 8 bits.
Smallest …
Largest …
[2]
(c) Give one application where Binary Coded Decimal (BCD) is used and justify its use.
Application …
Justification …
…
[2]
ĬÍĊ®Ġ´íÈõÏĪÅĊßü¸Ā×
Question text
3
A computer program uses a digital camera to read the words on an item.
The program can read the words that are written on the item, translate the words to a chosen
language and then output the words as audio. For example, when used in a supermarket, the
program can output the words written on the labels on products.
The program uses Artificial Intelligence (AI).
(a) Explain how AI is used in the computer program described.
…
…
…
…
…
…
…
… [4]
(b) State two social benefits of the use of AI in the computer program described.
1 …
…
…
2 …
…
…
[2]
ĬÏĊ®Ġ´íÈõÏĪÅĊßú¸Ā×
,
,
(c) The computer program is released under a commercial software licence.
(i)
Describe the features of a commercial software licence.
…
…
…
…
…
… [3]
(ii)
Explain the reasons why an open source software licence might not be appropriate for
the computer program described.
…
…
Question text
4
(a) Write the logic expressions for the following logic circuit.
R
X
S
T
Y
U
X = …
Y = …
[2]
ĬÑĊ®Ġ´íÈõÏĪÅĊÞúµþ×
,
,
(b) Complete the truth table for the logic expression:
X = NOT (A AND (B XOR C))
A
B
C
Working space
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[2]
ĬÓĊ®Ġ´íÈõÏĪÅĊÞüµþ×
Question text
5
An online game has a database that stores data about users and the characters each user
creates in the game. Each user can create multiple characters and purchase multiple items for
each character.
The normalised database has the following design:
USER(Username, Password, DateOfBirth)
CHARACTER(CharacterName, CharacterID, Username, Level, Money)
ITEM(ItemName, MinimumLevel, Cost)
CHARACTER_ITEM(CharacterID, ItemName)
(a) Explain the purpose of the table CHARACTER_ITEM in the database.
…
…
…
… [2]
(b) Underline the attribute, or attributes, that form the primary key in each of the tables.
USER(Username, Password, DateOfBirth)
CHARACTER(CharacterName, CharacterID, Username, Level, Money)
ITEM(ItemName, MinimumLevel, Cost)
CHARACTER_ITEM(CharacterID, ItemName)
[2]
ĬÑĊ®Ġ´íÈõÏĪÅĊàúµĀ×
,
,
(c) A Database Management System (DBMS) provides data security.
(i)
Identify two methods the DBMS can use to protect the data in the table USER from
unauthorised access.
Explain how each method protects the data.
Method 1 …
Explanation …
…
…
Method 2 …
Explanation …
…
…
[4]
(ii)
The DBMS also supports data integrity.
Give two ways that a DBMS can support data integrity.
1 …
…
2 …
…
[2]
ĬÓĊ®Ġ´íÈõÏĪÅĊàüµĀ×
,
,
(d) (i)
Write a Structured Query Language (SQL) script to count the number of items purchased
by the user with the username "KAT123".
…
…
…
…
Question text
6
A company has multiple sites in different cities.
The company has drivers who deliver products to customers. Each driver can connect to the
company’s WAN (Wide Area Network) whilst out of the office using a smartphone.
(a) State two ways that a WAN is different to a LAN (Local Area Network).
1 …
…
2 …
…
[2]
(b) The smartphones use the cell phone network to connect to the WAN.
Explain how data is transmitted using the cell phone network.
…
…
…
…
…
…
…
… [4]
(c) Devices that connect to the WAN have an IP address.
Complete the following description of IP addresses by writing the missing words.
IPv4 is displayed as four groups of 8-bit numbers separated by … .
Each IPv4 address is 32 bits.
IPv6 is made of eight groups of 4 … numbers separated by colons.
Multiple consecutive groups of … can be replaced with a double colon.
Each IPv6 address is … bits.
A … IP address can change each time the computer connects to a
network.
A … IP address can only be accessed by other devices in the same
LAN and is assigned by the router within the LAN.
[6]
ĬÓĊ®Ġ´íÈõÏĪÅĊÝü·þ×
,
,
(d) The main office for the company has four wired computers, one server, two printers, one
central switch and a device providing a single point of access for the internet. The network is
set up as a star topology.
Draw the topology for the main office network. Label all devices.
[4]
(e) Describe the role of a switch in a network.
…
…
…
…
...
Question text
7
(a) The following table shows part of the instruction set for a processor. The processor has one
register: the Accumulator (ACC).
Instruction
Explanation
Opcode
Operand
Direct addressing. Load the contents of the location at the given
LDD
<address>
address to ACC
LDM
#n
Immediate addressing. Load the number n to ACC
STO
<address>
Store the contents of ACC at the given address
ADD
#n/Bn/&n
Add the number n to the ACC
ADD
<address>
Add the contents of the given address to the ACC
INC
<register>
Add 1 to the contents of the register (ACC)
CMP
<address>
Compare the contents of ACC with the contents of <address>
CMP
#n
Compare the contents of ACC with number n
Following a compare instruction, jump to <address> if the compare
JPE
<address>
was True
JMP
<address>
Jump to the given address
END
Return control to the operating system
ACC denotes Accumulator
<address> can be an absolute or a symbolic address
# denotes a denary number, e.g. #123
B denotes a binary number, e.g. B01001010
& denotes a hexadecimal number, e.g. &4A
The current contents of memory are:
Address
Instruction
12
10
11
11
10
12
22
13
22
14
…
LDD 10
100
ADD 12
101
STO 11
102
CMP 14
103
JPE 107
104
INC ACC
105
JMP 101
106
STO 10
107
END
108
ĬÍĊ®Ġ´íÈõÏĪÅĊàû¶Ă×
,
,
(i)
Trace the program currently in memory using the following trace table.
Memory address
Instruction address
ACC
10
11
12
13
14
12
11
10
22
22
[3]
(ii)
State the effect of changing instruction LDD 10 in address 100 to LDM #10
…
…
… [1]
(iii)
Identify and describe one mode of addressing not given in the table of instructions in
part (a).
Mode of addressing …
Description …
…
…
[2]
ĬÏĊ®Ġ´íÈõÏĪÅĊàù¶Ă×
,
,
(b) The table shows part of the instruction set for a processor. The processor has one register:
the Accumulator (ACC).
Instruction
Explanation
Opcode
Operand
AND
#n/Bn/&n
Bitwise AND operation of the contents of ACC with the operand
AND
<address>
Bitwise AND operation of the contents of ACC with the contents of
<address>
XOR
#n/Bn/&n
Bitwise XOR operation of the contents of ACC with the operand
XOR
<address>
Bitwise XOR operation of the contents of ACC with the contents of
<address>
OR
#n/Bn/&n
Bitwise OR operation of the contents of ACC with the operand
OR
<address>
Bitwise OR operation of the contents of ACC with the contents of
<address>
<address> can be an absolute or symbolic address
# denotes a denary number, e.g. #123
B denotes a binary number, e.g. B01001010
& denotes a hexadecimal number, e.g. &4A
(i)
The ACC currently contains the following binary value.
1
1
1
1
0
0
0
0
Write the result after the instruction OR B00001111 is run.
[1]
(ii)
The ACC currently contains the following binary value.
0
0
0
1
1
1
0
1
Write the result after the instruction XOR #30 is run.
[1]
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 copyr