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.
- L181
- L11001000
- L10110111
- L6E
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.
- 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
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.
- L1000
- L0110
Adding column by column, carrying where needed, gives 1000 0110. Check in denary: 45 + 70 + 19 = 134, and 134 = 128 + 4 + 2.
- L10110000
Every bit moves three places left and zeros fill the gap on the right: 1011 0000.
Tick one box.
- LD It multiplies it by 8
Each place shifted left doubles the number, so three places multiply it by 2 x 2 x 2 = 8: 22 becomes 176.
Tick one box.
- LC 3 terabytes
3 terabytes is 3,000 gigabytes. 40,000 megabytes is 40 gigabytes and 900,000 kilobytes is 0.9 gigabytes.
- L69
- LH
The letters have consecutive codes: A 65, B 66, C 67, D 68, E 69, F 70, G 71, H 72.
- 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
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.
- 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
400 x 300 x 8 = 960,000 bits. 960,000 / 8 = 120,000 bytes. 120,000 / 1000 = 120 kB.
- LCorrect answer, full marks: 100000 bytes
- LMethod: Multiplies sample rate by resolution by time: 800,000 bits
20,000 x 8 x 5 = 800,000 bits. 800,000 / 8 = 100,000 bytes.
- LPairs 1 and 2: 5 0, 3 1
- LPairs 3 and 4: 6 0, 2 1
The pattern is five 0s, three 1s, six 0s and two 1s: 5 0, 3 1, 6 0, 2 1.
Figure 3
(7)
0 / \ 1
A:3 (4)
0 / \ 1
N:2 (2)
0 / \ 1
B:1 S:1- L10
- L111
Reading from the root: N is right then left, 10. S is right, right, right, 111.
- LCorrect answer, full marks: 13 bits
- LMethod: Multiplies each character's frequency by the length of its code
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.
- LCorrect answer, full marks: 36 bits
- LMethod: Works out that 7-bit ASCII needs 49 bits
BANANAS has 7 characters, so 7-bit ASCII needs 7 x 7 = 49 bits. 49 - 13 = 36 bits saved.
| A | B | C | Q |
|---|---|---|---|
| 0 | 0 | 0 | |
| 0 | 0 | 1 | |
| 0 | 1 | 0 | |
| 0 | 1 | 1 | |
| 1 | 0 | 0 | |
| 1 | 0 | 1 | |
| 1 | 1 | 0 | |
| 1 | 1 | 1 |
- LRows 1 and 2: 0, 0
- LRows 3 and 4: 1, 0
- LRows 5 and 6: 1, 0
- LRows 7 and 8: 1, 0
Q is 1 only when C is 0 and at least one of A and B is 1.
Tick one box.
- LA XOR
XOR, exclusive OR, outputs 1 when exactly one input is 1.
- LS AND NOT W
H = S AND NOT W, written H = S · W̄ in Boolean notation.
| ALU | Control unit | Clock | Register | |
|---|---|---|---|---|
| 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.
- 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
The ALU calculates and compares, the control unit coordinates, the clock keeps time, and registers hold the values being worked on.
- 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
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.
- 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
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.
| Compiler | Interpreter | Assembler | |
|---|---|---|---|
| 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.
- 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
A compiler translates everything first, an interpreter translates and runs line by line, and an assembler translates assembly language.
- 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
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.
Tick two boxes.
- 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
An embedded system, such as the controller in a washing machine, is part of a larger device and does one job.
Tick one box.
- LB A network of devices used by one person, connected over a short distance
A PAN connects one person's devices, such as a phone and headphones over Bluetooth.
| Application | Transport | Internet | Link | |
|---|---|---|---|---|
| HTTPS | ||||
| TCP | ||||
| IP | ||||
| Ethernet |
Tick one box in each row.
- L1 mark for both: HTTPS: Application; TCP: Transport
- L1 mark for both: IP: Internet; Ethernet: Link
HTTPS is an application protocol, TCP works at the transport layer, IP at the internet layer and Ethernet at the link layer.
- 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
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.
- 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
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.
Tick one box.
- LB Users can connect from anywhere within range, so they can move around
Wireless gives freedom to move. Wired connections are usually faster, more secure and less affected by interference.
| Blagging | Phishing | Shouldering | |
|---|---|---|---|
| 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.
- 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
Inventing a scenario to get information is blagging, watching someone is shouldering, and fake emails are phishing.
| Virus | Trojan | Spyware | |
|---|---|---|---|
| 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.
- 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
A virus copies itself into other files, a trojan is disguised as something useful, and spyware secretly gathers information.
- 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
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.
- 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
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.
Tick one box.
- LC To check that the user is a person, not an automated program
A CAPTCHA asks for something that people find easy and automated programs find hard, which stops bots.
Figure 8
Film
| FilmID | Title | Genre | Year | Minutes |
|---|---|---|---|---|
| 1 | Star Quest | Sci-fi | 2019 | 128 |
| 2 | The Last Laugh | Comedy | 2021 | 95 |
| 3 | Deep Water | Thriller | 2018 | 110 |
| 4 | Robot Rising | Sci-fi | 2022 | 141 |
| 5 | Holiday Mix-up | Comedy | 2017 | 88 |
| 6 | Night Train | Thriller | 2023 | 102 |
| 7 | Moon Base | Sci-fi | 2015 | 150 |
Showing
| ShowID | FilmID | Screen | StartTime |
|---|---|---|---|
| 101 | 4 | 1 | 18:00 |
| 102 | 2 | 2 | 18:30 |
| 103 | 4 | 2 | 20:45 |
| 104 | 6 | 1 | 21:00 |
| 105 | 1 | 3 | 17:15 |
- LFilmID
- LFilmID
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.
- LSELECT Title, Year
- LFROM Film
- LWHERE Genre = 'Sci-fi'
- LORDER BY Year DESC
Each clause earns its own mark. DESC puts the largest year, the newest film, first.
SELECT Title, Year
FROM Film
WHERE Genre = 'Sci-fi'
ORDER BY Year DESC- 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
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.
SELECT Title, StartTime
FROM Film, Showing
WHERE Film.FilmID = Showing.FilmID
AND Screen = 2- LUPDATE Film
- LSET Minutes = 112
- LWHERE FilmID = 3 (or Title = 'Deep Water'), so no other film changes
Without the WHERE clause, every film's running time would be set to 112.
UPDATE Film
SET Minutes = 112
WHERE FilmID = 3- LINSERT INTO Showing
- LVALUES (106, 3, 1, '19:30'), in the order of the fields
The values go in the same order as the fields, ShowID, FilmID, Screen, StartTime, with the time in quotes because it is text.
INSERT INTO Showing
VALUES (106, 3, 1, '19:30')- 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
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.
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.