Time left1:45:00 Answered 0 of 39 90 marks
AQA 8525/2 1 hour 45 minutes 90 marks Full length paper

GCSE Computer Science Paper 2: Computing Concepts

A full length 8525/2 paper: number bases, binary arithmetic and shifts, characters, images and sound, run length encoding and Huffman coding, Boolean logic, systems architecture, networks, cyber security, SQL queries run against a cinema database, and a discussion of smart speakers.

Instructions

Time allowed
1 hour 45 minutes
Total marks
90
Calculator
You must not use a calculator.
  • Answer all the questions.
  • The number of marks for each question is shown in brackets. Use it as a guide to how much to write.
  • The clock at the top counts down from the real time allowed. When it reaches zero the paper is locked and marked, as it would be collected in the exam hall.
  • In this paper 1 kilobyte (kB) = 1000 bytes, 1 megabyte (MB) = 1000 kilobytes, and so on, as in the specification.
  • SQL answers are run against the tables printed in question 08, so they must be valid SQL.
  • Answer every question. Shade exactly the number of lozenges asked for: shading more than asked scores nothing. Show your working in every calculation, because a method can earn marks even when the answer is wrong.

Questions

Answer every question, then finish the paper to have it marked. Marking as you go teaches you far less.

90 marks
01.1Complete each conversion.4 marks

Mark scheme0 / 4
  • L181
  • L11001000
  • L10110111
  • L6E
Model answer

1011 0101 = 128 + 32 + 16 + 4 + 1 = 181. 200 = 128 + 64 + 8 = 1100 1000. B is 1011 and 7 is 0111. 0110 is 6 and 1110 is E: 6E.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
01.2Explain why computer scientists often use hexadecimal instead of binary.2 marks
Explain

Mark scheme0 / 2
  • LHexadecimal is shorter: one hex digit represents four bits
  • Lso it is easier for people to read and remember, and fewer mistakes are made copying it
Model answer

Each hexadecimal digit stands for exactly four bits, so a byte is two hex digits instead of eight binary digits. That makes values much easier for people to read and remember, and fewer mistakes are made when copying them.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
01.3Add together the three binary numbers 0010 1101, 0100 0110 and 0001 0011. Give your answer as an 8-bit binary number, in two halves.2 marks

Mark scheme0 / 2
  • L1000
  • L0110
Model answer

Adding column by column, carrying where needed, gives 1000 0110. Check in denary: 45 + 70 + 19 = 134, and 134 = 128 + 4 + 2.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
01.4Apply a logical left shift of three places to the binary number 0001 0110. Give the 8-bit result.1 mark

Mark scheme0 / 1
  • L10110000
Model answer

Every bit moves three places left and zeros fill the gap on the right: 1011 0000.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
01.5Shade one lozenge to show the effect of the shift in 01.4 on the value of the number.1 mark

Tick one box.

Mark scheme0 / 1
  • LD It multiplies it by 8
Model answer

Each place shifted left doubles the number, so three places multiply it by 2 x 2 x 2 = 8: 22 becomes 176.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
02.1Shade one lozenge to show which of these is the largest amount of storage.1 mark

Tick one box.

Mark scheme0 / 1
  • LC 3 terabytes
Model answer

3 terabytes is 3,000 gigabytes. 40,000 megabytes is 40 gigabytes and 900,000 kilobytes is 0.9 gigabytes.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
02.2In ASCII, the character code for 'A' is 65. State:2 marks

Mark scheme0 / 2
  • L69
  • LH
Model answer

The letters have consecutive codes: A 65, B 66, C 67, D 68, E 69, F 70, G 71, H 72.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
02.3Explain one advantage of using Unicode instead of ASCII.2 marks
Explain

Mark scheme0 / 2
  • LUnicode uses more bits per character, so it can represent far more characters
  • Lso it can represent the characters of every language, and symbols such as emoji
Model answer

ASCII uses 7 bits, so it has only 128 codes, enough for English. Unicode uses more bits for each character, so it can represent over a million characters, including every writing system in the world and emoji.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
02.4An image is 400 pixels wide and 300 pixels high, and has a colour depth of 8 bits. Calculate the file size of the image in kilobytes. Show your working.3 marks

Mark scheme0 / 3
  • LCorrect answer, full marks: 120 kB
  • LMethod: Multiplies width by height by colour depth: 960,000 bits
  • LMethod: Divides by 8 and then by 1000 to reach kilobytes
Model answer

400 x 300 x 8 = 960,000 bits. 960,000 / 8 = 120,000 bytes. 120,000 / 1000 = 120 kB.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
02.5A sound is sampled at 20,000 Hz with a sample resolution of 8 bits. Calculate the file size, in bytes, of a 5 second recording. Show your working.2 marks

Mark scheme0 / 2
  • LCorrect answer, full marks: 100000 bytes
  • LMethod: Multiplies sample rate by resolution by time: 800,000 bits
Model answer

20,000 x 8 x 5 = 800,000 bits. 800,000 / 8 = 100,000 bytes.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
03.1Run length encoding (RLE) is used to compress the bit pattern 0000011100000011. Complete the frequency and data pairs that represent it.2 marks

Mark scheme0 / 2
  • LPairs 1 and 2: 5 0, 3 1
  • LPairs 3 and 4: 6 0, 2 1
Model answer

The pattern is five 0s, three 1s, six 0s and two 1s: 5 0, 3 1, 6 0, 2 1.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
03.2Figure 3 shows a Huffman tree for the characters in the word BANANAS. A left branch is 0 and a right branch is 1. State the Huffman code for each character.2 marks

Figure 3

   (7)
 0 / \ 1
A:3   (4)
    0 / \ 1
   N:2   (2)
       0 / \ 1
      B:1   S:1

Mark scheme0 / 2
  • L10
  • L111
Model answer

Reading from the root: N is right then left, 10. S is right, right, right, 111.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
03.3Calculate the number of bits needed to store the word BANANAS using the Huffman codes in Figure 3. Show your working.2 marks

Mark scheme0 / 2
  • LCorrect answer, full marks: 13 bits
  • LMethod: Multiplies each character's frequency by the length of its code
Model answer

A: 3 x 1 bit = 3. N: 2 x 2 bits = 4. B: 1 x 3 bits = 3. S: 1 x 3 bits = 3. 3 + 4 + 3 + 3 = 13 bits.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
03.4Calculate how many bits are saved by storing BANANAS using Huffman coding instead of 7-bit ASCII. Show your working.2 marks

Mark scheme0 / 2
  • LCorrect answer, full marks: 36 bits
  • LMethod: Works out that 7-bit ASCII needs 49 bits
Model answer

BANANAS has 7 characters, so 7-bit ASCII needs 7 x 7 = 49 bits. 49 - 13 = 36 bits saved.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
04.1Complete the truth table for the expression Q = (A OR B) AND (NOT C), written Q = (A + B) · C̄ in Boolean notation.4 marks
ABCQ
000
001
010
011
100
101
110
111

Mark scheme0 / 4
  • LRows 1 and 2: 0, 0
  • LRows 3 and 4: 1, 0
  • LRows 5 and 6: 1, 0
  • LRows 7 and 8: 1, 0
Model answer

Q is 1 only when C is 0 and at least one of A and B is 1.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
04.2Shade one lozenge to show the logic gate whose output is 1 only when its two inputs are different.1 mark

Tick one box.

Mark scheme0 / 1
  • LA XOR
Model answer

XOR, exclusive OR, outputs 1 when exactly one input is 1.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
04.3A heater (H) is on when the system is switched on (S) and the room is not warm (W). Write a Boolean expression for H.1 mark

Mark scheme0 / 1
  • LS AND NOT W
Model answer

H = S AND NOT W, written H = S · W̄ in Boolean notation.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
05.1Shade one lozenge in each row to show the component of the CPU that is described.4 marks
ALUControl unitClockRegister
Carries out arithmetic and logical operations
Coordinates the actions of the CPU by sending out control signals
Sends out regular pulses that keep the CPU's actions in step
A tiny, very fast storage location inside the CPU

Tick one box in each row.

Mark scheme0 / 4
  • LCarries out arithmetic and logical operations: ALU
  • LCoordinates the actions of the CPU by sending out control signals: Control unit
  • LSends out regular pulses that keep the CPU's actions in step: Clock
  • LA tiny, very fast storage location inside the CPU: Register
Model answer

The ALU calculates and compares, the control unit coordinates, the clock keeps time, and registers hold the values being worked on.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
05.2Describe the fetch-execute cycle.3 marks
Describe

Mark scheme0 / 3
  • LThe next instruction is fetched from main memory, using its address
  • LThe instruction is decoded by the control unit
  • LThe instruction is executed, and the cycle repeats for the next instruction
Model answer

The CPU fetches the next instruction from main memory, using the address held in the program counter. The control unit decodes the instruction to work out what it means. The instruction is then executed, and the cycle repeats with the next instruction.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
05.3Explain why a solid state drive is often used in a laptop instead of a magnetic hard disk drive.2 marks
Explain

Mark scheme0 / 2
  • LAn SSD has no moving parts, so it is more durable if the laptop is knocked or dropped
  • LIt is faster, lighter and uses less power, so the laptop starts quickly and its battery lasts longer
Model answer

A laptop gets carried around and knocked, and an SSD has no moving parts to damage. It is also faster, lighter and uses less power than a hard disk, so the laptop starts and loads quickly and its battery lasts longer.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
05.4Shade one lozenge in each row to show the type of translator described.3 marks
CompilerInterpreterAssembler
Translates a whole high-level program into machine code before it is run
Translates and executes a high-level program one line at a time
Translates assembly language into machine code

Tick one box in each row.

Mark scheme0 / 3
  • LTranslates a whole high-level program into machine code before it is run: Compiler
  • LTranslates and executes a high-level program one line at a time: Interpreter
  • LTranslates assembly language into machine code: Assembler
Model answer

A compiler translates everything first, an interpreter translates and runs line by line, and an assembler translates assembly language.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
05.5Explain why most programs are written in high-level languages rather than low-level languages.2 marks
Explain

Mark scheme0 / 2
  • LHigh-level code uses English-like statements, so it is easier to read, write, understand and debug
  • LIt is portable: it is not tied to one type of processor, and one statement can do the work of many machine code instructions
Model answer

High-level languages use English-like keywords, so programs are quicker to write and much easier to read and debug. They are also portable: the same program can be translated for different types of processor, whereas low-level code is written for one processor.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
05.6Shade two lozenges to show which statements about embedded systems are true.2 marks

Tick two boxes.

Mark scheme0 / 2
  • LA They are built into a larger device
  • LD They usually carry out one dedicated task
  • LNo marks if more than 2 boxes are ticked
Model answer

An embedded system, such as the controller in a washing machine, is part of a larger device and does one job.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
06.1Shade one lozenge to show which describes a personal area network (PAN).1 mark

Tick one box.

Mark scheme0 / 1
  • LB A network of devices used by one person, connected over a short distance
Model answer

A PAN connects one person's devices, such as a phone and headphones over Bluetooth.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
06.2Shade one lozenge in each row to show the layer of the TCP/IP model at which each protocol operates.2 marks
ApplicationTransportInternetLink
HTTPS
TCP
IP
Ethernet

Tick one box in each row.

Mark scheme0 / 2
  • L1 mark for both: HTTPS: Application; TCP: Transport
  • L1 mark for both: IP: Internet; Ethernet: Link
Model answer

HTTPS is an application protocol, TCP works at the transport layer, IP at the internet layer and Ethernet at the link layer.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
06.3Explain the purpose of the protocols SMTP and IMAP.2 marks
Explain

Mark scheme0 / 2
  • LSMTP is used to send emails, to a mail server and between servers
  • LIMAP is used to retrieve or access emails from the mail server, keeping them on the server
Model answer

SMTP is used to send email: it transfers a message from the sender's device to their mail server and on to the recipient's server. IMAP is used to retrieve email: it lets a device read the messages that are kept on the server, so they stay in step across devices.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
06.4Explain how MAC address filtering helps to keep a wireless network secure.2 marks
Explain

Mark scheme0 / 2
  • LOnly devices whose MAC addresses are on an approved list can connect
  • LEvery device has a unique MAC address, so any unknown device is blocked
Model answer

Every network interface has a unique MAC address. The router keeps a list of the MAC addresses that are allowed, and refuses to connect any device whose address is not on the list.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
06.5Shade one lozenge to show an advantage of a wireless network compared with a wired network.1 mark

Tick one box.

Mark scheme0 / 1
  • LB Users can connect from anywhere within range, so they can move around
Model answer

Wireless gives freedom to move. Wired connections are usually faster, more secure and less affected by interference.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
07.1Shade one lozenge in each row to show the form of social engineering described.3 marks
BlaggingPhishingShouldering
Phoning an employee, pretending to be from IT support, to get their password
Watching someone enter their PIN at a cash machine
Sending emails that link to a fake bank website

Tick one box in each row.

Mark scheme0 / 3
  • LPhoning an employee, pretending to be from IT support, to get their password: Blagging
  • LWatching someone enter their PIN at a cash machine: Shouldering
  • LSending emails that link to a fake bank website: Phishing
Model answer

Inventing a scenario to get information is blagging, watching someone is shouldering, and fake emails are phishing.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
07.2Shade one lozenge in each row to show the type of malware described.3 marks
VirusTrojanSpyware
Attaches itself to a file and spreads when the file is run
Pretends to be useful software but secretly does harm
Secretly records what a user does, such as the keys they press

Tick one box in each row.

Mark scheme0 / 3
  • LAttaches itself to a file and spreads when the file is run: Virus
  • LPretends to be useful software but secretly does harm: Trojan
  • LSecretly records what a user does, such as the keys they press: Spyware
Model answer

A virus copies itself into other files, a trojan is disguised as something useful, and spyware secretly gathers information.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
07.3Describe the difference between black-box and white-box penetration testing.2 marks
Describe

Mark scheme0 / 2
  • LBlack-box testing simulates an external attack by someone with no knowledge of the system and no login details
  • LWhite-box testing simulates an attack by a malicious insider who knows about the system and has some login details
Model answer

Black-box testing simulates an attack from outside: the testers are given no knowledge of the system and no login details. White-box testing simulates a malicious insider, such as an employee, who knows how the system works and has basic login details.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
07.4Explain why automatic software updates help to protect a computer.2 marks
Explain

Mark scheme0 / 2
  • LUpdates contain patches that fix security vulnerabilities
  • LBeing automatic, they are installed as soon as they are released, before attackers can exploit the weakness and without relying on the user
Model answer

Software updates include patches that close security weaknesses that have been discovered. Installing them automatically means the computer is protected as soon as the fix is released, before attackers can exploit the weakness, and does not depend on the user remembering to update.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
07.5Shade one lozenge to show the purpose of a CAPTCHA.1 mark

Tick one box.

Mark scheme0 / 1
  • LC To check that the user is a person, not an automated program
Model answer

A CAPTCHA asks for something that people find easy and automated programs find hard, which stops bots.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
08.1A cinema stores data about its films and showings in a relational database. Figure 8 shows the two tables. State:2 marks

Figure 8

Film

FilmIDTitleGenreYearMinutes
1Star QuestSci-fi2019128
2The Last LaughComedy202195
3Deep WaterThriller2018110
4Robot RisingSci-fi2022141
5Holiday Mix-upComedy201788
6Night TrainThriller2023102
7Moon BaseSci-fi2015150

Showing

ShowIDFilmIDScreenStartTime
1014118:00
1022218:30
1034220:45
1046121:00
1051317:15

Mark scheme0 / 2
  • LFilmID
  • LFilmID
Model answer

FilmID uniquely identifies each film, so it is the primary key of Film. Showing uses FilmID to link each showing to a film, so in Showing it is a foreign key.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
08.2Write an SQL query to find the Title and Year of every film in the Sci-fi genre. The newest film must be shown first.4 marks
query.sql

Mark scheme0 / 4
  • LSELECT Title, Year
  • LFROM Film
  • LWHERE Genre = 'Sci-fi'
  • LORDER BY Year DESC
An answer that scores full marks

Each clause earns its own mark. DESC puts the largest year, the newest film, first.

SQL
SELECT Title, Year
FROM Film
WHERE Genre = 'Sci-fi'
ORDER BY Year DESC
Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
08.3Write an SQL query to find the Title of the film and the StartTime of every showing on Screen 2.4 marks
query.sql

Mark scheme0 / 4
  • LSELECT Title, StartTime
  • LFROM Film, Showing (or a join of the two tables)
  • LLinks the tables: Film.FilmID = Showing.FilmID
  • LOnly the showings on Screen 2
An answer that scores full marks

The two tables are linked by matching FilmID in each, so every showing is paired with its own film. Without that condition every showing would be paired with every film.

SQL
SELECT Title, StartTime
FROM Film, Showing
WHERE Film.FilmID = Showing.FilmID
AND Screen = 2
Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
08.4The running time of Deep Water has been corrected to 112 minutes. Write an SQL statement to update the Film table.3 marks
query.sql

Mark scheme0 / 3
  • LUPDATE Film
  • LSET Minutes = 112
  • LWHERE FilmID = 3 (or Title = 'Deep Water'), so no other film changes
An answer that scores full marks

Without the WHERE clause, every film's running time would be set to 112.

SQL
UPDATE Film
SET Minutes = 112
WHERE FilmID = 3
Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
08.5A new showing has ShowID 106. It is a showing of Deep Water (FilmID 3) on Screen 1, starting at 19:30. Write an SQL statement to add it to the Showing table.2 marks
query.sql

Mark scheme0 / 2
  • LINSERT INTO Showing
  • LVALUES (106, 3, 1, '19:30'), in the order of the fields
An answer that scores full marks

The values go in the same order as the fields, ShowID, FilmID, Screen, StartTime, with the time in quotes because it is text.

SQL
INSERT INTO Showing
VALUES (106, 3, 1, '19:30')
Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
09Many people now have smart speakers with voice assistants in their homes.Discuss the ethical, legal and environmental issues of using smart speakers.6 marks
Discuss

Mark scheme0 / 6
  • LPrivacy: the speaker is always listening, and may record private conversations
  • LThe company collects data about users, which may be used for targeted advertising or shared
  • LLegal: under the Data Protection Act 2018 personal data must be processed lawfully, kept secure and not kept too long, and users can ask to see it
  • LDevices could be hacked to listen in or reach the home network, an offence under the Computer Misuse Act
  • LBenefits: they help disabled, blind or elderly people, and are convenient
  • LEnvironmental: always-on devices and the data centres behind them use energy
  • LManufacturing uses mined materials, and replaced devices become e-waste
  • LReaches a balanced conclusion
Model answer

Smart speakers are always listening for their wake word, which raises obvious privacy concerns: recordings of private conversations can be stored on the company's servers, and the data gathered about a household can be used to target advertising. Legally, the company must follow the Data Protection Act 2018, processing personal data lawfully, keeping it secure, not keeping it for longer than needed and letting users see what is held about them. Poorly secured devices could also be hacked to listen in or to reach the rest of the home network, which is an offence under the Computer Misuse Act 1990. On the other hand, voice control is a real benefit for people who are blind, disabled or elderly, helping them live independently. Environmentally, the devices are always on, and every request is processed in energy-hungry data centres; making them uses mined materials, and old devices add to e-waste. On balance smart speakers are useful, especially for accessibility, but users should review privacy settings and companies must handle the data responsibly.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
Machine mark 0 / 90
About this paper

This is an original paper modelled on the real AQA 8525/2 past papers: the same structure, the same balance of topics, the same command words and mark tariffs, 90 marks in 1 hour 45 minutes, exactly as the real paper allows. It is not a past paper. Real past papers are the copyright of the exam board and cannot be republished here, so links to the official papers on the board's own site are on the exam papers page.