AQA A-Level CS 2024 Question Paper
AQA A-Level CS 2024 Question Paper
Surname
Forename(s)
Candidate signature
I declare this is my own work.
A-level
COMPUTER SCIENCE
Paper 2
Tuesday 18 June 2024 Afternoon Time allowed: 2 hours 30 minutes
Materials
For Examiner’s Use
For this paper you must have:
• a calculator. Question Mark
1
Instructions
• Use black ink or black ball-point pen. 2
• Fill in the boxes at the top of this page. 3
• Answer all questions. 4
• You must answer the questions in the spaces provided. Do not write outside
the box around each page or on blank pages. 5
• If you need extra space for your answer(s), use the lined pages at the end of 6
this book. Write the question number against your answer(s). 7
• Do all rough work in this book. Cross through any work you do not want to
8
be marked.
9
Information 10
• The marks for questions are shown in brackets.
11
• The maximum mark for this paper is 100.
TOTAL
Advice
• In some questions you are required to indicate your answer by completely
shading a lozenge alongside the appropriate answer as shown.
• If you want to change your answer you must cross out your original answer as
shown.
• If you wish to return to an answer previously crossed out, ring the answer
you now wish to select as shown.
*jun247517201*
IB/G/Jun24/G4003/E12 7517/2
2
Do not write
outside the
Answer all questions. box
0 1 Anti-virus software and user training are measures that can be used to reduce the
threat posed by viruses.
Describe four other measures that can be used to reduce the threat posed by
viruses.
[4 marks]
*02*
IB/G/Jun24/7517/2
3
Do not write
outside the
Turn over for the next question box
Turn over ►
*03*
IB/G/Jun24/7517/2
4
Do not write
outside the
0 2 . 1 A digital camera takes photographs that are 4000 pixels wide by 3000 pixels tall and box
Answer megabytes
0 2 . 2 How many images, taken using the camera referred to in Question 02.1, could be
stored on a 256 gigabyte memory card?
You should assume that all of the storage space on the memory card is available to
store image data.
Answer
*04*
IB/G/Jun24/7517/2
5
Do not write
outside the
When a digital camera takes a photograph, an array of photosensors produces box
Turn over ►
*05*
IB/G/Jun24/7517/2
6
Do not write
outside the
An image is 20 pixels wide by 30 pixels tall. The colour of each pixel is represented box
Here is a row of data from the original image. The colour of each of the 20 pixels is
shown as a decimal value, with commas used to separate the data for the different
pixels:
24, 24, 24, 253, 254, 255, 76, 76, 76, 80, 82, 0, 0, 9, 223, 223, 224, 220, 76, 76
The image is to be compressed using Run Length Encoding (RLE). The RLE method
used will:
In decimal, the RLE for the colour of the first four pixels would be:
3, 24, 1, 253
0 2 . 4 Calculate how much memory the row of pixels will take up before and after it has
been encoded using RLE.
[1 mark]
0 2 . 5 Comment on the effectiveness of the use of RLE to encode the row of pixels in
Question 02.4 and explain why this is the case.
[1 mark]
*06*
IB/G/Jun24/7517/2
7
Do not write
outside the
0 3 Figure 1 shows the organisation of part of a simple computer system. box
Figure 1
0 3 . 2 The data bus inside the computer uses synchronous parallel data transmission.
Turn over ►
*07*
IB/G/Jun24/7517/2
8
Do not write
outside the
0 3 . 3 Peripherals, such as a keyboard or printer, are connected to the computer using a box
USB (Universal Serial Bus) connection. USB uses synchronous serial data
transmission.
Explain why serial transmission has been chosen to communicate with peripherals
connected to the computer and why parallel transmission is used by the data bus
inside the computer.
[3 marks]
*08*
IB/G/Jun24/7517/2
9
Do not write
outside the
0 3 . 5 The computer’s address bus uses 36 wires/lines and each main memory location can box
In gibibytes, express the maximum amount of main memory that could be installed in
the computer, assuming that the CPU could access all of the memory using the
address bus.
Answer gibibytes
0 3 . 6 State an example of how the control bus is used when the processor stores data into
main memory.
[1 mark]
10
Turn over ►
*09*
IB/G/Jun24/7517/2
10
Do not write
outside the
0 4 . 1 Shade the lozenges next to all of the true statements about representing numbers box
Questions 04.2, 04.3 and 04.4 use a normalised floating point representation with an
8-bit mantissa and a 4-bit exponent, both stored using two’s complement.
Figure 2
Answer
*10*
IB/G/Jun24/7517/2
11
Do not write
outside the
Questions 04.2, 04.3 and 04.4 use a normalised floating point representation with an box
8-bit mantissa and a 4-bit exponent, both stored using two’s complement.
49
0 4 . 3 The decimal number 12.765625 (which can also be expressed as 12 ) cannot be
64
represented exactly in this floating point system.
Write the closest possible normalised representation of this number in the boxes
below.
Answer
0 4 . 4 What is the smallest number of bits that would need to be added to the mantissa so
that the decimal number 12.765625 could be represented exactly?
[1 mark]
Turn over ►
*11*
IB/G/Jun24/7517/2
12
Do not write
outside the
0 4 . 5 A different system uses a normalised floating point representation with a 10-bit box
In decimal, what is the most negative number that this system could represent?
10
Most negative number
*12*
IB/G/Jun24/7517/2
13
Do not write
outside the
Turn over for the next question box
Turn over ►
*13*
IB/G/Jun24/7517/2
14
Do not write
outside the
0 5 . 1 A company uses a file server that stores files on magnetic hard disk drives. These box
Describe:
• how the data for a file would be stored on a magnetic hard disk and read from it by
the file server
• how the individual layers of the TCP/IP stack in the file server would be used to
transmit the file onto the network.
In your response, you do not need to describe how the file would be transmitted
across the network or how the TCP/IP stack would be used in the computer that has
requested the file. You only need to write about how the data would be put onto the
network by the file server.
[12 marks]
*14*
IB/G/Jun24/7517/2
15
Do not write
outside the
box
Turn over ►
*15*
IB/G/Jun24/7517/2
16
Do not write
outside the
0 5 . 2 The company needs to purchase a second file server. box
It is considering whether to purchase a file server with magnetic hard disk drives
installed or a file server with solid-state disks (SSDs) instead. Each of the file servers
has the same total storage capacity.
State one advantage and one disadvantage of purchasing the file server that uses
SSDs.
[2 marks]
Advantage
Disadvantage
14
*16*
IB/G/Jun24/7517/2
17
Do not write
outside the
Turn over for the next question box
Turn over ►
*17*
IB/G/Jun24/7517/2
18
Do not write
outside the
0 6 . 1 Draw a logic circuit for the Boolean expression: box
Q = A⋅B+ B+ C⋅D
0 6 . 2 A flip-flop is a component that can be incorporated into a logic circuit. Figure 3 shows
a diagram of an edge-triggered D-type flip-flop.
Figure 3
Explain how the output Q will be affected when a pulse is received on the Clock
input.
[1 mark]
*18*
IB/G/Jun24/7517/2
19
Do not write
outside the
0 6 . 3 Using the rules of Boolean algebra, simplify the following Boolean expression. box
A ⋅ ( B ⋅ C ⋅ D + B ⋅ C ⋅ D + B) + A + B
Working
Answer 9
Turn over ►
*19*
IB/G/Jun24/7517/2
20
Do not write
outside the
There are no questions printed on this page box
*20*
IB/G/Jun24/7517/2
21
Do not write
outside the
0 7 A student has a Local Area Network (LAN) in her house. She uses one of the box
computers on the LAN as a web server to host a website for a club that she is a
member of.
Figure 4 shows the Uniform Resource Locator (URL) of a page on the website.
Figure 4
http://www.loveapug.org.uk/pictures/cutepugs.html
0 7 . 1 State the protocol and domain name used in the URL in Figure 4.
[1 mark]
Protocol
Domain name
0 7 . 3 Explain the service provided by Internet registries and why they are needed.
[2 marks]
Turn over ►
*21*
IB/G/Jun24/7517/2
22
Do not write
outside the
Figure 5 shows a diagram of the LAN in the student’s house. The LAN connects box
three computers, including the web server, to the Internet via a router.
Figure 5
The router uses Network Address Translation (NAT) because the computers on the
LAN, including the web server, have non-routable IP addresses.
0 7 . 4 Explain how a computer located outside the LAN can access the web server, despite
the fact that the web server is identified by a non-routable IP address.
[3 marks]
*22*
IB/G/Jun24/7517/2
23
Do not write
outside the
0 7 . 5 Explain why it might be undesirable to allow the network settings of the web server to box
0 7 . 6 The student uses the computer with IP address 192.168.0.4 to download a file from
an FTP server on the Internet using the File Transfer Protocol (FTP).
Describe how NAT will be used in this process, to handle both the outgoing request
and the returned data.
[4 marks]
Turn over ►
*23*
IB/G/Jun24/7517/2
24
Do not write
outside the
0 7 . 7 The replacement of IPv4 with IPv6 would mean that NAT is no longer necessary. box
0 7 . 8 The web server and the web browser on a client computer use the Websocket
protocol when they communicate with each other.
Shade one lozenge to indicate which of these statements about the Websocket
protocol is true.
[1 mark]
A All messages sent using the protocol encode data using XML.
C Messages sent using the protocol can only originate from the web server.
*24*
IB/G/Jun24/7517/2
25
Do not write
outside the
Turn over for the next question box
Turn over ►
*25*
IB/G/Jun24/7517/2
26
Do not write
outside the
0 8 A shop that sells items through a website uses a relational database to store box
information about the products that it sells and the sales that it has made.
Figure 6
• The Product relation stores information about the products that the shop sells and
who supplies them. Each type of product is identified by a unique number and has
a brief description. For example, ProductID 1 has the Description ‘A4 Ring Binder –
Purple’. The QuantityInStock indicates how many of the product the shop currently
has in stock.
• The Sale and SaleLine relations are used to record the details of the sale of
products to a customer. Each sale is identified by a unique SaleID, which is a
number.
• The Customer relation stores the details of customers who have registered on the
website so that they can purchase products. Each customer is identified by a
unique CustomerID, which is a number.
• The Supplier relation records the details of companies who supply the products to
the shop. Each supplier is identified by a unique SupplierID, which is a number.
0 8 . 1 Shade one lozenge to indicate which of the listed assumptions has been made when
the database was designed.
[1 mark]
*26*
IB/G/Jun24/7517/2
27
Do not write
outside the
When a sale is made to a customer, three changes need to be made to the data in the box
database:
A sale is made on the 29/09/2024 to the Customer with CustomerID 48. The sale is
for 3 of the products with ProductID 1. The sale is to be given the SaleID 4072.
0 8 . 2 Write an SQL query that will create the new record for sale 4072 in the Sale table.
[2 marks]
0 8 . 3 Write an SQL query that will update the QuantityInStock of the product with
ProductID 1 when this sale is made. The value 3 should be subtracted from the
current quantity in stock.
[3 marks]
*27*
IB/G/Jun24/7517/2
28
Do not write
outside the
0 8 . 4 The database system can be accessed by many users simultaneously. box
Describe two problems that can occur with databases that are not fully normalised.
[2 marks]
Problem 1
Problem 2
11
*28*
IB/G/Jun24/7517/2
29
Do not write
outside the
Turn over for the next question box
Turn over ►
*29*
IB/G/Jun24/7517/2
30
Do not write
outside the
0 9 Algorithms and artificial intelligence are being increasingly used to assist with the box
Discuss some of the moral, ethical and legal issues that might arise as a result of
using computer systems to assist with diagnosing medical conditions.
In your answer you will be assessed on your ability to follow a line of reasoning to
produce a coherent, relevant and structured response.
[6 marks]
*30*
IB/G/Jun24/7517/2
31
Do not write
outside the
box
Turn over ►
*31*
IB/G/Jun24/7517/2
32
Do not write
outside the
There are no questions printed on this page box
*32*
IB/G/Jun24/7517/2
33
Do not write
outside the
This table is included so that you can answer Question 10.1 on page 35. box
LDR Rd, <memory ref> Load the value stored in the memory location specified by
<memory ref> into register d
STR Rd, <memory ref> Store the value that is in register d into the memory location
specified by <memory ref>
ADD Rd, Rn, <operand2> Add the value specified in <operand2> to the value in
register n and store the result in register d
SUB Rd, Rn, <operand2> Subtract the value specified by <operand2> from the value
in register n and store the result in register d
MOV Rd, <operand2> Copy the value specified by <operand2> into register d
CMP Rn, <operand2> Compare the value stored in register n with the value
specified by <operand2>
B <label> Always branch to the instruction at position <label> in the
program.
B<condition> <label> Branch to the instruction at position <label> if the last
comparison met the criterion specified by <condition>.
Possible values for <condition> and their meanings are:
EQ: equal to NE: not equal to
GT: greater than LT: less than
AND Rd, Rn, <operand2> Perform a bitwise logical AND operation between the value
in register n and the value specified by <operand2> and
store the result in register d
ORR Rd, Rn, <operand2> Perform a bitwise logical OR operation between the value in
register n and the value specified by <operand2> and
store the result in register d
EOR Rd, Rn, <operand2> Perform a bitwise logical XOR (exclusive or) operation
between the value in register n and the value specified by
<operand2> and store the result in register d
MVN Rd, <operand2> Perform a bitwise logical NOT operation on the value
specified by <operand2> and store the result in register d
LSL Rd, Rn, <operand2> Logically shift left the value stored in register n by the
number of bits specified by <operand2> and store the
result in register d
LSR Rd, Rn, <operand2> Logically shift right the value stored in register n by the
number of bits specified by <operand2> and store the
result in register d
HALT Stops the execution of the program.
Labels: A label is placed in the code by writing an identifier followed by a colon (:). To refer to a
label, the identifier of the label is placed after the branch instruction.
Interpretation of <operand2>
<operand2> can be interpreted in two different ways, depending on whether the first character
is a # or an R:
• # – use the decimal value specified after the #, eg #25 means use the decimal value 25
• Rm – use the value stored in register m, eg R6 means use the value stored in register 6
The available general-purpose registers that the programmer can use are numbered 0–12
Turn over ►
*33*
IB/G/Jun24/7517/2
34
Do not write
outside the
1 0 Figure 7 shows an assembly language program which has been written using the box
AQA assembly language instruction set. The instruction set is explained in Table 1
on page 33.
Figure 7
The program performs a task on a value stored in memory location 130. The value in
this memory location is a 7-bit ASCII code.
For example, if memory location 130 was used to store the ASCII character ‘S’ then it
would contain the value 83, which in binary is:
0 1 0 1 0 0 1 1
*34*
IB/G/Jun24/7517/2
35
Do not write
outside the
1 0 . 1 Complete the trace table below to show the results of executing the program in box
You may find it easier to understand the operation of the program if you write the
contents of memory location 130 and register R1 out in both binary and decimal.
You may not need to use all the rows in the table.
[6 marks]
Memory Location
R1 R2 R3 R4
130
83 (01010011)
Turn over ►
*35*
IB/G/Jun24/7517/2
36
Do not write
outside the
1 0 . 2 The value in memory location 130 before the program is executed is the program’s box
input and the value stored in memory location 130 when the program finishes
executing is its output.
By considering your trace table for Question 10.1 and the assembly language code in
Figure 7, describe the purpose of the program.
[2 marks]
Advantage 1
Advantage 2
11
*36*
IB/G/Jun24/7517/2
37
Do not write
outside the
1 1 . 1 A functional programming function f has the function type: box
f: ℕ → ℝ
Feature 1
Feature 2
END OF QUESTIONS
*37*
IB/G/Jun24/7517/2
38
Do not write
outside the
There are no questions printed on this page box
*38*
IB/G/Jun24/7517/2
39
Do not write
outside the
box
Question Additional page, if required.
number Write the question numbers in the left-hand margin.
*39*
IB/G/Jun24/7517/2
40
Do not write
outside the
box
Question Additional page, if required.
number Write the question numbers in the left-hand margin.
Copyright information
For confidentiality purposes, all acknowledgements of third-party copyright material are published in a separate booklet. This booklet
is published after each live examination series and is available for free download from www.aqa.org.uk.
Permission to reproduce all copyright material has been applied for. In some cases, efforts to contact copyright-holders may have
been unsuccessful and AQA will be happy to rectify any omissions of acknowledgements. If you have any queries please contact the
Copyright Team.
*246A7517/2*
*40*
IB/G/Jun24/7517/2