Past paper – A Level Computer Science (9618)
Cambridge International AS & A Level · 9618
Computer Science · Paper 13
May/June 2024 · 9618/13/M/J/24
Answer on paper, open each mark scheme and give yourself marks, then open the Summary.
Question text
1
(a) Complete the following description.
A kibibyte has a … prefix. Three kibibytes is the same
as … bytes.
A megabyte has a … prefix. Two terabytes is the same
as … gigabytes.
[4]
(b) Convert the denary number 241 to hexadecimal.
…
… [1]
(c) State what is meant by an overflow in binary addition.
…
… [1]
(d) Computers use character sets when representing characters in binary.
(i)
Complete the table by identifying the number of bits each of the character sets allocates
to each character.
Character set
Number of bits
ASCII
extended ASCII
Unicode
[1]
(ii)
Explain how the word ‘Clock’ is represented by a character set.
…
…
…
… [2]
Question text
2
A photograph is stored as a bitmap image.
(a) The photograph has a resolution of 4000 pixels wide by 3000 pixels high. The bit depth is
4 bytes.
Calculate an estimate for the file size of the photograph in megabytes.
Show your working.
Working …
…
…
Answer … megabytes
[2]
(b) The photograph is compressed before being uploaded to a web server.
(i)
Give three benefits of this photograph being compressed using lossy compression
instead of lossless compression.
1 …
…
2 …
…
3 …
…
[3]
(ii)
Explain how run-length encoding (RLE) will compress the photograph.
…
…
…
… [2]
(c) Identify two elements of a bitmap image that can be changed to reduce its file size.
1 …
…
2 …
…
[2]
Question text
3
The following table shows part of the instruction set for a processor. The processor has two
registers: the Accumulator (ACC) and an Index Register (IX).
Instruction
Explanation
Opcode
Operand
Immediate addressing. Load the number n to ACC
LDM
#n
Direct addressing. Load the contents of the location at the given
LDD
<address>
address to ACC
Indirect addressing. The address to be used is at the given address.
LDI
<address>
Load the contents of this second address to ACC
Indexed addressing. Form the address from <address> + the contents
LDX
<address>
of the index register. Copy the contents of this calculated address to
ACC
Immediate addressing. Load the number n to IX
LDR
#n
Add the number n to the ACC
ADD
#n/Bn/&n
Add the contents of the given address to the ACC
ADD
<address>
Subtract 1 from the contents of the register (ACC or IX)
DEC
<register>
Subtract the number n from the ACC
SUB
#n/Bn/&n
Subtract the contents of the given address from the ACC
SUB
<address>
Add 1 to the contents of the register (ACC or IX)
INC
<register>
<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
,
,
(a) The current contents of memory are shown:
Address
Data
51
48
6
49
48
50
50
51
49
52
50
53
6
54
The current contents of the ACC and IX are shown:
2
ACC
50
IX
Complete the table by writing the content of the ACC after each program has run.
Program number
Code
ACC content
LDM #50
INC ACC
1
SUB #1
LDI 51
2
ADD 52
LDR #2
LDX 50
3
DEC ACC
LDD 52
SUB 54
4
INC ACC
[4]
,
,
(b) The processor includes these bit manipulation instructions:
Instruction
Explanation
Opcode
Operand
AND
#n/Bn/&n
Bitwise AND operation of the contents of ACC with the operand
Bitwise AND operation of the contents of ACC with the contents of
AND
<address>
<address>
XOR
#n/Bn/&n
Bitwise XOR operation of the contents of ACC with the operand
Bitwise XOR operation of the contents of ACC with the contents of
XOR
<address>
<address>
OR
#n/Bn/&n
Bitwise OR operation of the contents of ACC with the operand
Bitwise OR operation of the contents of ACC with the contents of
OR
<address>
<address>
Bits in ACC are shifted logically n places to the left. Zeros are
LSL
#n
introduced on the right-hand end
Bits in ACC are shifted logically n places to the right. Zeros are
LSR
#n
introduced on the left-hand end
<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 shown:
Address
Data
00001101
100
10111110
101
11110011
102
00110111
103
00000000
104
The current content of the ACC is shown:
1
1
1
1
1
1
1
1
,
,
Complete the table by writing the content of the ACC after each instruction has run.
The binary number 11111111 is reloaded into the ACC before each instruction is run.
Instruction number
Instruction
ACC content
LSL #2
1
XOR 100
2
AND 103
3
[3]
Question text
4
A theatre wants to use a database to store data about the shows that are scheduled, their
customers and the seats that the customers have booked.
In the theatre:
•
Each show can take place on multiple dates.
•
Some dates can have more than one performance.
•
There are multiple rows of seats.
•
Each seat can be individually booked by its row letter and seat number, for example row E
seat 2.
Part of the database design includes these tables:
SHOW(ShowID, Title, Duration)
SEAT(SeatID, RowLetter, SeatNumber)
PERFORMANCE(PerformanceID, ShowID, ShowDate, StartTime)
(a) Identify the relationship between the tables PERFORMANCE and SHOW.
…
… [1]
(b) Sample data for the table PERFORMANCE is shown:
PerformanceID
ShowID
ShowDate
StartTime
0001
MK12
5/5/2025
13:00
0002
MK12
5/5/2025
19:30
0003
MK12
6/5/2025
19:00
0004
OP3
7/5/2025
18:30
0005
OP3
8/5/2025
18:30
0006
OP3
9/5/2025
13:00
Write a Structured Query Language (SQL) script to define the table PERFORMANCE.
…
…
…
…
…
…
…
…
… [4]
,
,
(c) Write an SQL script to return the number of times each show is scheduled. For example, in
the sample data in part (b), the show MK12 is scheduled three times.
The result needs to include the show name and a suitable field name for the number of times
it is scheduled.
…
…
…
…
…
…
…
…
Question text
5
A multimedia design company has an office with a LAN (local area network). The LAN can have
up to 20 devices connected with cables and other devices connected using wireless access.
(a) The company has private cloud storage for its employees to store their work.
(i)
Define the term private cloud.
…
… [1]
(ii)
Describe the benefits to the company of using private cloud storage instead of public
cloud storage.
…
…
…
…
…
… [3]
(b) Part of the internal structure of the wired LAN is a star topology.
Explain how packets are transmitted between two devices in a star topology.
…
…
…
… [2]
,
,
(c) A different part of the network uses the Ethernet protocol.
(i)
A collision is detected.
Describe how the collision is managed using Carrier Sense Multiple Access/Collision
Detection (CSMA/CD).
…
…
…
… [2]
(ii)
Identify two drawbacks of using CSMA/CD.
1 …
…
2 …
…
[2]
(d) The devices in the office have static private IP addresses.
State what is meant by a static private IP address.
…
…
Question text
6
Each of the following truth tables has three inputs (A, B and C) and one output (X).
Draw one line to match each truth table with its logic expression.
Truth table
Logic expression
A
B
C
X
0
0
0
0
NOT (A XOR B) AND C
0
0
1
1
0
1
0
0
0
1
1
0
1
0
0
1
1
0
1
1
1
1
0
0
(A OR C) AND NOT B
1
1
1
0
A
B
C
X
0
0
0
0
0
0
1
1
0
1
0
0
A NAND B NAND C
0
1
1
0
1
0
0
0
1
0
1
0
1
1
0
0
1
1
1
1
A
B
C
X
(A NAND B) OR C
0
0
0
1
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
1
1
0
1
1
NOT (A AND B AND C)
1
1
0
0
1
1
1
1
[3]
Question text
7
Robots are used to serve food and drink to customers at a restaurant.
(a) A robot navigates through the restaurant to the table it is serving.
Complete the table by identifying two sensors that can be included in the robot and the
purpose of each sensor in the navigation system.
Sensor
Purpose of sensor in navigation system
…
…
…
…
…
…
…
…
[2]
(b) The robot uses Artificial Intelligence (AI) to communicate with the customers. The customers
speak to the robot to order their food and drinks.
Explain how AI will be used in this part of the robot.
…
…
…
…
…
…
…
… [3]
,
,
(c) The navigation system can be considered an example of a control system.
Describe how feedback is used in a control system.
…
…
…
… [2]
(d) The robot includes a touchscreen for the customer to make their payment.
Describe the principal operation of a touchscreen.
…
…
…
…
…
…