All papers

Computer Science · AQA 7517 · Paper 2: Written exam · November 2020

AQA A Level Computer Science Paper 2: Written exam November 2020 question paper 7517/2

2h 30m 100 marks

AQA 7517 · Paper 2

11 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 has been sampled and recorded. The sound was sampled for 1 minute and 40 seconds at a sample rate of 8000 Hz with a 16-bit sample resolution.

A sample rate of 1 Hz means that one sample has been taken every second.

Calculate the minimum amount of storage space, in bytes, needed to store the sampled sound.

You should show your working.

[2 marks]

Answer
Mark scheme for question 1.1

An analogue to digital converter (ADC) was used during the sampling process.

Explain the principles of operation of an ADC.

[2 marks]

Answer
Mark scheme for question 1.2

Question 2

Questions 02.2, 02.3, 02.4 and 02.5 use a normalised floating point representation with a 7-bit mantissa and a 5-bit exponent, both stored using two’s complement.

Non-integer values such as-1.65 and 23/1068 can be represented by a computer using a fixed point or a floating point system.

State one advantage of using a floating point system over a fixed point system and one advantage of using a fixed point system over a floating point system.

You should assume that the two systems use the same number of bits to store a value.

Advantage of floating point

Advantage of fixed point

[2 marks]

Answer
Mark scheme for question 2.1

The following is a floating point representation of a number:

Figure for question 2

Calculate the decimal equivalent of the number.

Express your answer to at least four decimal places or as a fraction. You should show your working.

[2 marks]

Answer
Mark scheme for question 2.2

Questions 02.2, 02.3, 02.4 and 02.5 use a normalised floating point representation with a 7-bit mantissa and a 5-bit exponent, both stored using two’s complement.

Write the normalised floating point representation of the decimal value 1632 in the boxes below.

You should show your working.

Figure for question 2

[3 marks]

Answer
Mark scheme for question 2.3

Questions 02.2, 02.3, 02.4 and 02.5 use a normalised floating point representation with a 7-bit mantissa and a 5-bit exponent, both stored using two’s complement.

State, in decimal, the highest (most positive) and lowest (most negative) values that could be represented by this floating point system.

You should show your working.

Question 2, shown as an image

[3 marks]

Answer
Mark scheme for question 2.4

When the decimal value 28.25 is converted into binary using this floating point system, a rounding error occurs.

Explain:

• why a rounding error has occurred, and

• what the system might do when the value 28.25 is converted into binary.

[2 marks]

Answer
Mark scheme for question 2.5

Question 3

Figure for question 3

[2 marks]

Answer
Mark scheme for question 3.1

The computer has 4 gibibytes of memory installed. How many kibibytes is this equivalent to?

[1 mark]

Answer
Mark scheme for question 3.2

A tablet computer uses the Harvard architecture. Describe two advantages of using the Harvard architecture compared to the von Neumann architecture.

Advantage 1

Advantage 2

[2 marks]

Answer
Mark scheme for question 3.3

The diagram in Figure 2 describes the fetch part of the Fetch-Execute cycle. Some of the names of registers have been omitted from the figure and replaced with the

Question 3, shown as an image
Figure for question 3

State the full names of the registers that should appear in the diagram where the numbers are.

Figure for question 3

[2 marks]

Answer
Mark scheme for question 3.4

Interrupts can be generated by devices connected to the processor during the Fetch-Execute cycle.

Describe the role of interrupts.

[2 marks]

Answer
Mark scheme for question 3.5

Explain why the volatile environment (the contents of registers) must be saved before an interrupt is serviced.

[2 marks]

Answer
Mark scheme for question 3.6

Explain the relationship between hardware and software.

[1 mark]

Answer
Mark scheme for question 3.7

Question 4

Figure for question 4

The list below contains four statements about the principles of CRUD and REST. One of these statements is false.

Shade one lozenge to indicate which statement is false.

Figure for question 4

[1 mark]

Answer
Mark scheme for question 4.1

An SQL query is executed to retrieve some details about properties with at least four bedrooms in a particular area. The following two records are found:

Question 4, shown as an image

These records could be sent from the server to the client using XML or JSON.

Figure 4 shows the query results encoded using each of these methods.

Figure for question 4

Shade one lozenge to identify the method of encoding used by Representation 2.

Figure for question 4

[1 mark]

Answer
Mark scheme for question 4.2

State two reasons why it could be argued that JSON is better than XML.

Reason 1

Reason 2

[2 marks]

Answer
Mark scheme for question 4.3

A composite primary key has been selected for the Viewing relation. This consists of the attributes BuyerID, PropertyID and ViewingDate.

In selecting these attributes to form the primary key, what assumption has the database designer made about the behaviour of the buyers?

[1 mark]

Answer
Mark scheme for question 4.4
Figure for question 4

[5 marks]

Answer
Mark scheme for question 4.5

Question 5

Figure for question 5

The computers on subnet 192.168.2.0 have been configured using the DHCP system.

State one advantage of using the DHCP system.

[1 mark]

Answer
Mark scheme for question 5.1

Computer A has the IP address 192.168.2.3

Many other computers connected to the Internet have the same IP address.

Explain how two or more computers connected to the Internet can have the same IP address and still communicate with each other.

[2 marks]

Answer
Mark scheme for question 5.2

In addition to routing, Router A3 also acts as a firewall to protect the computers on the LAN in the UK.

Explain four different ways that a firewall can protect computers on a LAN.

[4 marks]

Answer
Mark scheme for question 5.3

A packet of data is to be transmitted across the Internet from Computer A in the UK to Computer B in Belgium. A checksum will be used to attempt to detect if any errors have occurred during the transmission.

Explain how:

• Computer A will use a subnet mask to determine whether or not it can send the packet directly to Computer B across the LAN or if the packet must be sent via the Internet

• the packet will be routed across the Internet

• the checksum can be used to determine if the received packet has been changed during the transmission.

In your answer you will be assessed on your ability to follow a line of reasoning to produce a coherent, relevant and structured response.

[12 marks]

Answer
Mark scheme for question 5.4

Question 6

Figure for question 6

[1 mark]

Answer
Mark scheme for question 6.1

A 7-segment display is a component used to display a digit on devices such as calculators. A 7-segment display consists of seven lights (called segments) which can be illuminated individually to make the shapes of digits. For example, the digit 3 could be displayed by illuminating five of the seven segments like this (black shading indicates an illuminated segment):

Figure for question 6

Figure 7 shows part of a logic circuit which is designed to take a binary representation of a single decimal digit as its input and light up the segments to display the decimal digit. The part of the circuit shown controls the lighting of just one segment of the display.

Figure for question 6

The inputs to the circuit are X3, X2, X1 and X0. Together these form the binary representation of the decimal digit to display. For example, if the inputs to the circuit were:

Question 6, shown as an image

then the display would need to show this pattern:

Figure for question 6

as 0101 is the binary representation of the decimal digit 5

The output Q is connected to one segment of the display. When Q is 1 this segment lights up, when it is 0 the segment does not light up.

Complete every empty cell in the truth table below for the circuit in Figure 7

• The listed inputs to the table (X3, X2, X1, X0) represent the decimal digits 0–9 in binary, which are the only allowed inputs.

• The letters A–E have been used to label intermediate points on the circuit in Figure 7 to help you to work out the final output Q

• Some of the cells have been completed for you.

Figure for question 6

[4 marks]

Answer
Mark scheme for question 6.2

Figure 8 shows the patterns of segments that are illuminated for each of the decimal digits 0–9.

Figure for question 6

By considering the inputs and outputs of the circuit in Figure 7 and consulting your trace table, state which of the segments in the display (labelled a to g below) the output Q from the circuit is controlling.

Figure for question 6
Question 6, shown as an image

[1 mark]

Answer
Mark scheme for question 6.3
Figure for question 6

[4 marks]

Answer
Mark scheme for question 6.4

Question 7

One of the numbers listed below is a member of the set of integers, the set of rational numbers and the set of real numbers, but is not a member of either the set of irrational numbers or the set of natural numbers.

Shade one lozenge to indicate which number this is.

Figure for question 7

[1 mark]

Answer
Mark scheme for question 7.1

Shade one lozenge to indicate which type of number would be most appropriate to use to measure the length of an item, such as a piece of rope.

Figure for question 7

[1 mark]

Answer
Mark scheme for question 7.2

Question 8

A warehouse stores products that are waiting to be delivered to supermarkets. The products are packed onto pallets. For example, a pallet might hold 120 boxes of washing powder. All of the products on one pallet are of the same type.

The individual products on the pallets could be identified by labelling them individually with barcodes or by attaching RFID (radio-frequency identification) tags to them.

Each barcode/RFID tag would store a representation of a ProductID number that uniquely identifies the type of product (eg 102546 might represent a specific brand and box size of washing powder) together with an ItemID number that is unique to the specific item (eg box number 1 of the washing powder, box number 2 of the washing powder etc).

Figure 9 shows an example of five boxes of washing powder loaded onto a pallet and their ProductID and ItemID values.

Figure for question 8

Figure 10 shows an excerpt from the simple database table that stores the details of the products that the warehouse has in stock.

Question 8, shown as an image

Some pallets delivered to the warehouse will be of products that already exist in the database table. Other deliveries will be of pallets of items that don’t exist in the table because the warehouse has not stocked them before.

Explain why the warehouse owners might prefer the individual products to be identified using RFID tags.

[2 marks]

Answer
Mark scheme for question 8.1

Explain why the product manufacturers or supermarket owners might prefer the individual products to be identified using barcode labels.

[2 marks]

Answer
Mark scheme for question 8.2

Describe how an RFID reader would read the ProductID and ItemID values from RFID tags as pallets are delivered and explain how this data could be used to update the database table that stores details of the products that the warehouse has in stock.

You should include in your description references to the type(s) of SQL statements (eg INSERT, SELECT, UPDATE) that could be used and their purpose, but you do not need to write any SQL code.

[6 marks]

Answer
Mark scheme for question 8.3

Question 9

Figure 11 shows the format of a machine code instruction for a particular processor and one instruction in that format.

Figure for question 9

If the operand can be used to refer to any location in the memory, how many memory locations can the processor address?

[1 mark]

Answer
Mark scheme for question 9.1

One of the two addressing modes that the processor supports is immediate addressing.

Explain what is meant by immediate addressing.

[1 mark]

Answer
Mark scheme for question 9.2
Figure for question 9 Figure for question 9

[3 marks]

Answer
Mark scheme for question 9.3
Figure for question 9

[3 marks]

Answer
Mark scheme for question 9.4

Question 10

A company provides a social media service through which members can share information about themselves and view information and news from their friends.

The service also displays current affairs news stories to its members. The service does not have journalists who write the stories but instead it uses algorithms to select news stories written by other organisations and individuals and shows these. Different news stories may be shown to different members.

Discuss:

• how algorithms might determine which current affairs news stories to display to an individual member

• the moral, ethical and legal considerations that the developers of the system and its operators should consider in relation to how the algorithms work and which news stories are displayed.

[6 marks]

Answer
Mark scheme for question 10

Question 11

The list towers is defined as: towers = ["Blackpool", "Paris", "New Brighton", "Toronto"]

What are the head and tail of this list?

Head

Tail

[1 mark]

Answer
Mark scheme for question 11.1
Figure for question 11

[3 marks]

Answer
Mark scheme for question 11.2

Functional programming languages support higher-order functions such as map and fold.

Explain what a higher-order function is.

[2 marks]

Answer
Mark scheme for question 11.3

What is the result of this application of the fold function? fold (*) 1 [2, 3, 2]

Result

[1 mark]

Answer
Mark scheme for question 11.4

The paper as printed

Spotted a mistake on this page?Report a problem