Past paper – A Level Computer Science (9618)
Cambridge International AS & A Level · 9618
Computer Science · Paper 12
Oct/Nov 2024 · 9618/12/O/N/24
Answer on paper, open each mark scheme and give yourself marks, then open the Summary.
Question text
1
(a) Complete the truth table for the logic expression:
X = (A XOR B) NAND (A AND (B XOR C))
Working space
A
B
C
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]
(b) Draw the logic circuit for the logic expression:
W = P NAND ((Q OR NOT R) XOR (P XOR Q))
P
Q
W
R
[2]
ĬÍĊ®Ġ´íÈõÏĪÅĊÝû¸þ×
Question text
2
Embedded systems are used in many electronic devices.
(a) Describe the drawbacks of embedded systems.
…
…
…
…
…
… [3]
(b) An embedded system has Dynamic RAM (DRAM).
Identify one benefit of using DRAM instead of Static RAM (SRAM) in an embedded system.
…
… [1]
(c) Give two differences between Erasable Programmable ROM (EPROM) and Electrically
Erasable Programmable ROM (EEPROM).
Difference 1 …
…
…
Difference 2 …
…
…
[2]
ĬÏĊ®Ġ´íÈõÏĪÅĊÝù¸þ×
Question text
3
A student has a computer.
(a) The computer is designed using the Von Neumann model for a computer system.
Complete the table by describing the purpose of each of the given registers.
Register
Purpose
…
Program Counter
(PC)
…
…
…
Memory Address
Register (MAR)
…
…
…
Memory Data
Register (MDR)
…
…
…
Index Register (IX)
…
…
[4]
ĬÍĊ®Ġ´íÈõÏĪÅĊßû¸Ā×
,
,
(b) The student needs to connect the computer to a monitor that has a screen resolution of
2560 × 1600 pixels. The monitor also has built-in speakers.
The computer has a Video Graphics Array (VGA) port and a High Definition Multimedia
Interface (HDMI) port.
Explain the benefits of connecting the monitor to the computer using the HDMI port instead of
the VGA port.
…
…
…
…
…
…
…
… [4]
(c) The computer has an Operating System (OS). One of the key management tasks of the OS is
process management.
Describe the process management tasks performed by an OS.
…
…
…
…
…
Question text
4
A program is written in a high-level language by a team of three programmers using an Integrated
Development Environment (IDE).
(a) Describe how the programmers can use the debugging features of a typical IDE during the
development of the program.
…
…
…
…
…
…
…
… [4]
(b) The programmers created a new program library whilst developing the program.
Describe the benefits to the programmers of creating a program library.
…
…
…
…
…
… [3]
(c) The file containing the final program code will be sent by email for beta testing.
Identify one security method that can be used to protect the program code from unauthorised
access during email transfer.
Explain how your chosen method protects the program code.
Security method …
…
Explanation …
…
…
…
[3]
ĬÑĊ®Ġ´íÈõÏĪÅĊÞùµþ×
Question text
5
A computer programmer is learning about the importance of acting ethically at work.
(a) Explain the reasons why the computer programmer needs to act ethically towards colleagues
and the public.
Colleagues …
…
…
…
The public …
…
…
…
[4]
(b) The programmer writes a program to be used in a business. The source code of the program
can be modified by the business. The business pays the programmer for the maintenance
and security updates.
(i)
Identify one suitable type of software licence for the program and describe the reasons
for your choice.
Type of software licence …
Reasons for choice …
…
…
…
[3]
(ii)
Explain the reasons why the programmer should copyright their program.
…
…
…
… [2]
ĬÓĊ®Ġ´íÈõÏĪÅĊÞûµþ×
Question text
6
A company uses a relational database to store data about its customers, employees and the
individual repair jobs that customers have booked.
(a) Explain the benefits of using a relational database instead of a file-based approach.
…
…
…
…
…
… [3]
(b) The company decides which employees will work on each repair job. An employee can log
into the database to access information about their repair jobs.
The database is normalised and includes these tables:
•
CUSTOMER stores personal data about each customer
•
EMPLOYEE stores personal data about each employee
•
LOGIN_DATA stores the username and password for each employee
•
JOB stores the data about each repair job
•
JOB_EMPLOYEE stores the employees that are working on each repair job.
(i)
Identify each relationship between the database tables and explain how each relationship
can be implemented in the normalised database.
…
…
…
…
…
…
…
…
…
…
…
… [6]
ĬÑĊ®Ġ´íÈõÏĪÅĊàùµĀ×
,
,
(ii)
The database also has the table INVOICE that stores data about each invoice that is
sent to a customer.
Example data from the table INVOICE is given.
InvoiceID
DateSent
Amount
Paid
JobID
29262
12/12/2023
105.20
Y
221
26765
11/11/2023
200.00
Y
315
13290
02/01/2024
50.00
Y
315
34090
05/02/2024
25.95
N
569
Write a Structured Query Language (SQL) script to return the total amount of all the
invoices sent in the year 2023 that have been paid.
…
Question text
7
A student takes a photograph of a science experiment.
(a) The photograph is saved as a bitmapped image.
(i)
Define the following bitmap terms.
Colour depth …
…
File header …
…
[2]
(ii)
Explain why changing the image resolution will affect the image quality and file size.
Image quality …
…
…
File size …
…
…
[2]
(iii)
Identify one lossless method of compressing an image.
… [1]
(b) The student draws a picture on paper that is scanned into the computer and saved as a
vector graphic.
Define the vector graphic terms property and drawing list.
Property …
…
Drawing list …
…
[2]
ĬÑĊ®Ġ´íÈõÏĪÅĊÝù·þ×
Question text
8
The following table shows part of the instruction set for a processor. The processor has two
registers, the Accumulator (ACC) and the Index Register (IX).
Instruction
Explanation
Opcode
Operand
LDM
#n
Immediate addressing. Load the number n to ACC
LDD
<address>
Direct addressing. Load the contents of the location at the
given address to ACC
LDI
<address>
Indirect addressing. The address to be used is at the given
address.
Load the contents of this second address to ACC
LDX
<address>
Indexed addressing. Form the address from <address> + the
contents of the index register. Copy the contents of this
calculated address to ACC
LDR
#n
Immediate addressing. Load the number n to IX
ADD
#n/Bn/&n
Add the number n to the ACC
ADD
<address>
Add the contents of the given address to the ACC
SUB
#n/Bn/&n
Subtract the number n from the ACC
SUB
<address>
Subtract the contents of the given address from the ACC
INC
<register>
Add 1 to the contents of the register (ACC or IX)
DEC
<register>
Subtract 1 from the contents of the register (ACC or IX)
<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
19
25
20
23
21
2
22
4
23
15
24
50
25
22
The current contents of the ACC and IX are shown:
50
ACC
20
IX
Complete the table by writing the content of the ACC and the IX after each set of instructions
has run.
Instructions
ACC content
IX content
LDM #19
1
DEC ACC
LDD 23
2
ADD 19
LDI 25
3
INC ACC
LDR #21
4
LDX 2
[5]
ĬÓĊ®Ġ´íÈõÏĪÅĊßû·Ā×
,
,
(b) The instruction set also 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
AND
<address>
contents of <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
XOR
<address>
contents of <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
OR
<address>
contents of <address>
Bits in ACC are shifted logically n places to the left. Zeros
LSL
#n
are introduced on the right-hand end
Bits in ACC are shifted logically n places to the right. Zeros
LSR
#n
are 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 content of the ACC is shown:
ACC
1
0
0
1
1
0
1
0
(i)
The table has three sets of instructions. The binary number 10011010 is reloaded into
the ACC before each set of instructions is run.
Complete the table by writing the content of the ACC after each set of instructions has run.
Instructions
ACC content
LSL #2
1
ADD #5
2
AND #30
OR B11110010
3
INC ACC
[3]
ĬÍĊ®Ġ´íÈõÏĪÅĊàü¶Ă×
,
,
(ii)
Explain how bit manipulation can be used to test whether the binary number stored in
the ACC represents an odd denary number.
Write the bit manipulation instruction that will be used.
Explanation …
…
…
…
…
Instruction …
Question text
9
A road bridge has a weight limit and a height limit for vehicles. For example, a vehicle must weigh
less than 10 000 kg and must have a height of less than 3 m.
The bridge has a warning system. If a vehicle is approaching the bridge and it exceeds one or
both limits, a sign displays a warning telling the driver of the vehicle to stop.
(a) The bridge warning system uses sensors to detect if a vehicle exceeds the limits.
Complete the table by identifying two different sensors that could be used by the system and
describe how each sensor is used by the system.
Sensor
Use in bridge warning system
…
…
…
…
…
…
…
…
…
…
[2]
(b) Explain whether the bridge warning system is an example of a monitoring system or of a
control system.
…
…
…
… [2]
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
ĬÍĊ®Ġ´íÈõÏĪÅĊÞü¶Ą×