All papers

Computer Science · AQA 7517 · Paper 2: Written exam · June 2023

AQA A Level Computer Science Paper 2: Written exam June 2023 question paper 7517/2

2h 30m 100 marks

AQA 7517 · Paper 2

12 questions
Report a problem
What is wrong?

Goes to whoever maintains the question split. No account needed and nothing is published on this page.

Question 1

A sound is sampled and recorded digitally. The sound is sampled at a rate of 48 000 samples per second (Hz) for 3 minutes using a 16-bit sample resolution.

Calculate the size of the digital recording, giving your answer in mebibytes.

Give your answer rounded to 2 decimal places.

You should show your working.

[2 marks]

Answer
Mark scheme for question 1.1

The highest frequency component in a different sound is 15 000 Hz.

What is the minimum sampling rate that should be used when recording this sound to ensure that all the frequencies in the original waveform are preserved, so that when the recording is played back the original sound is recreated accurately?

[1 mark]

Answer
Mark scheme for question 1.2

Figure 1 shows part of the process of playing back a sound that has been sampled. The binary sound data is used to generate an electrical waveform.

Figure for question 1

A hardware component on a sound card carries out the process shown in Figure 1.

State the name of this component.

[1 mark]

Answer
Mark scheme for question 1.3

Question 2

Figure 2 shows some of the fields contained in a packet, transmitted on a computer network.

Figure for question 2

Name two fields typically included in a packet which are not shown in Figure 2.

Field 1

Field 2

[2 marks]

Answer
Mark scheme for question 2.1

Explain what the checksum is used for and outline how the checksum’s value will be determined.

Explain what the checksum is used for

Question 2, shown as an image

[2 marks]

Answer
Mark scheme for question 2.2

Packets of data are transmitted using packet switching.

Describe the role of a router in packet switching.

[2 marks]

Answer
Mark scheme for question 2.3

Question 3

Encrypt the plaintext SECURITY using the Caesar cipher with a key of 4.

PlaintextCiphertext
SECURITY

[1 mark]

Answer
Mark scheme for question 3.1
Figure for question 3

[1 mark]

Answer
Mark scheme for question 3.2

State one reason why the cipher in Figure 3 is harder to crack than the Caesar cipher.

[1 mark]

Answer
Mark scheme for question 3.3

The Vernam cipher, unlike the Caesar cipher, can be perfectly secure.

State two conditions that must be met for the Vernam cipher to offer perfect security.

Condition 1:

Condition 2:

[2 marks]

Answer
Mark scheme for question 3.4

Question 4

Describe how the fetch-execute cycle is used to carry out machine code instructions and how the hardware of a computer could be improved so that programs can be executed more quickly.

Your response should include a description of what happens during each stage of the fetch-execute cycle.

[12 marks]

Answer
Mark scheme for question 4.1

An interrupt may occur during the fetch-execute cycle.

Describe what an interrupt is and explain the purpose of interrupts.

[2 marks]

Answer
Mark scheme for question 4.2

Question 5

A company operates a cinema which has three different screens. Each screen has a capacity determined by the number of seats the screen has.

Each seat is identified by a unique seat number for the screen it is in, but two seats in different screens can have the same number. A specific seat is classified as being of one of two types: standard or deluxe.

On a particular day, there will be several showings of films in each of the screens. A screen might show the same film multiple times or it might show different films at different times of day.

Customers make bookings to go to the cinema. Each booking is for one specific showing of a film. A booking is for one or more seats, and the customer can select the individual seats that they want to book when they make the booking.

When a booking is made, if the customer has not previously made a booking, the customer’s first name, last name and telephone number are recorded. If the booking is for more than one seat then only the details of the person who made the booking are recorded – the system does not store the details of who will be sitting in each seat. If a customer has made a booking previously then the details that were stored about them when the previous booking was made are re-used.

Figure for question 5

[5 marks]

Answer
Mark scheme for question 5.1

The cinema had to be closed on the 29th March 2023 so that some maintenance could take place.

The SQL query in Figure 5 was written to delete all of the showings on this date. Some errors were made in the query.

Figure 5

DELETE FROM Showing, Film WHERE ShowDate = 29/03/2023

Describe two errors that have been made in the query.

Do not refer to the use of semi-colons in your response.

Error 1

Error 2

[2 marks]

Answer
Mark scheme for question 5.2

Describe an issue that could arise in the database if a query to delete all of the showings that had been scheduled to take place on the 29th March 2023 was executed.

[2 marks]

Answer
Mark scheme for question 5.3

The booking system can be accessed through a website which uses CRUD and REST.

Describe what Uniform Resource Locators (URLs) are used for in a RESTful application.

[1 mark]

Answer
Mark scheme for question 5.4

Shade one lozenge on the row that correctly shows how REST enables CRUD to be mapped to database functions using SQL.

Figure for question 5

[1 mark]

Answer
Mark scheme for question 5.5
Figure for question 5

[2 marks]

Answer
Mark scheme for question 5.6

Question 6

Question parts 06.1 and 06.2 use a normalised floating point representation with an 8-bit mantissa and a 4-bit exponent, both stored using two’s complement.

Figure 7 shows a floating point representation of a number:

Figure for question 6

Calculate the decimal equivalent of the number in Figure 7.

You should show your working.

[2 marks]

Answer
Mark scheme for question 6.1
Figure for question 6 Figure for question 6

[3 marks]

Answer
Mark scheme for question 6.2

On each row of Table 1, state the name of the Type of error that has occurred in the Situation that is described.

Figure for question 6

[2 marks]

Answer
Mark scheme for question 6.3

Question parts 06.1 and 06.2 use a normalised floating point representation with an 8-bit mantissa and a 4-bit exponent, both stored using two’s complement.

Explain how the floating point representation used in Question parts 06.1 and 06.2 could be modified to represent numbers more precisely, without changing the total number of bits used to represent a number.

[1 mark]

Answer
Mark scheme for question 6.4

Question 7

For question parts 07.1 and 07.2 you should assume that memory locations and registers store 8-bit values. These question parts use the AQA assembly language instruction set in Table 3 on page 23.

Assembly language instructions can be used to perform masking, which allows the values of individual bits or groups of bits within a number to be isolated or set independently of the values of the other bits in the number.

For example, to isolate the values of the rightmost four bits of an 8-bit number, the number could be ANDed with the binary value 00001111. The assembly language instruction AND R0, R1, #15 performs a bitwise logical AND operation between the value in register R1 and the number 15 (equivalent to 00001111 in binary), storing the result in register R0.

Figure for question 7

[1 mark]

Answer
Mark scheme for question 7.1
Figure for question 7

[1 mark]

Answer
Mark scheme for question 7.2
Figure for question 7 Figure for question 7

[10 marks]

Answer
Mark scheme for question 7.3

Question 8

A supermarket chain uses a system which stores details of all of the products that it sells and the sales that it makes.

The data that the supermarket stores is Big Data.

Two characteristics of Big Data are that the volume of data means it is too big to fit on a single server and the data comes in a variety of forms.

Describe the third characteristic of Big Data.

[1 mark]

Answer
Mark scheme for question 8.1

The graph schema in Figure 8 represents part of a fact-based model of the dataset that the supermarket has built.

Figure for question 8

Modify the graph schema in Figure 8 to represent the following additional facts.

• The Bath store sells chocolate biscuits.

• There are 20 individual biscuits in a packet of iced biscuits and each packet costs £1.50

• Both chocolate biscuits and iced biscuits are made by the company Delicious Snacks. The company has 75 employees and also makes cake bars.

[3 marks]

Answer
Mark scheme for question 8.2

One approach to dealing with Big Data is to write code that can be distributed to run across more than one server.

State two features of functional programming languages that make it easier to write code that can be distributed to run across more than one server.

Feature 1

Feature 2

[2 marks]

Answer
Mark scheme for question 8.3

Question 9

The truth table in Table 4 represents the operation of a logic system.

Figure for question 9

In the space below, draw a logic circuit that would produce the outputs shown in Table 4 for the given inputs.

To achieve full marks for your response, your circuit should use exactly two gates.

Figure for question 9

[3 marks]

Answer
Mark scheme for question 9.1

Explain the purpose of the circuit that you have drawn that produces the outputs given in Table 4.

[1 mark]

Answer
Mark scheme for question 9.2
Figure for question 9

[4 marks]

Answer
Mark scheme for question 9.3

Question 10

A data communication system uses asynchronous data transmission with even parity to send character codes that are encoded using 7-bit ASCII.

Figure 9 shows five binary patterns.

Figure for question 10

How many of the binary patterns in Figure 9 could represent valid transmissions of a single character in this data communication system?

[1 mark]

Answer
Mark scheme for question 10.1

An alternative data communication system uses synchronous data transmission.

Describe what synchronous data transmission is.

[1 mark]

Answer
Mark scheme for question 10.2

Describe one limitation of the use of parity bits for managing errors.

[1 mark]

Answer
Mark scheme for question 10.3

Shade one lozenge to indicate which of the lines on the graph in Figure 10 shows the correct relationship between the bandwidth and the bit rate of a communications medium.

Figure for question 10

[1 mark]

Answer
Mark scheme for question 10.4

Question 11

An email is being sent from User A on Computer A to User B on Computer B.

Describe the role that will be played by the transport layer of the TCP/IP stack in the transmission of the email from Computer A to an email server.

[3 marks]

Answer
Mark scheme for question 11.1

Whilst being transported across the Internet, the email data passes through a number of routers and one gateway.

Describe the additional functionality of a gateway, beyond that of a router.

[1 mark]

Answer
Mark scheme for question 11.2

State the name and purpose of two application layer protocols that will be used to transfer the email from Computer A to Computer B.

Each protocol must have a different purpose.

Protocol 1 purpose

Protocol 2 purpose

[4 marks]

Answer
Mark scheme for question 11.3

The email servers involved in the transmission of the email use well-known ports.

Explain what a well-known port is and why an email server must use one.

What a well-known port is

Why an email server uses a well-known port

[2 marks]

Answer
Mark scheme for question 11.4

The email message needs to be sent securely as it contains confidential information.

The message will be encrypted using asymmetric encryption. To enable Computer B to authenticate that the message was sent by Computer A, a digital signature will also be sent with the message.

Describe how:

• Computer A will encrypt the message and create the digital signature

• Computer B will decrypt the message and verify that it was sent by Computer A.

In your response you should refer to the specific keys that will be used in this process.

[6 marks]

Answer
Mark scheme for question 11.5

Question 12

Figure for question 12

Complete Table 5 by writing the value of the argument passed to each call of FunctionZ and the value returned by each call, when FunctionZ [4, 2, 5, 3] is evaluated.

Figure for question 12

[3 marks]

Answer
Mark scheme for question 12.1

All of the values in lists passed to FunctionZ as the argument are members of the set of integers.

Shade one lozenge to indicate the co-domain of the function.

Figure for question 12

[1 mark]

Answer
Mark scheme for question 12.2

The paper as printed

Spotted a mistake on this page?Report a problem