AQA A-Level Computer Science AS Paper 2, June 2025: Question 5
2 marks ยท Easy difficulty ยท Short Answer
Explain why digital files are compressed and determine the run length encoding (RLE) representation for a given sequence of characters.
Practise this questionQuestion
Question text
05.1 Explain why digital files are often stored in compressed format.
[1 mark]
05.2 Run length encoding (RLE) can be used to compress data. Figure 2 shows some of
the data from a file.
Figure 2
BBGGGRRRRW
State the RLE for the data shown in Figure 2.
[1 mark]
Mark scheme
Show the mark scheme
Qu Pt Marking Guidance Marks
05 1 Mark is for AO1 (understanding) 1
To reduce storage requirements // so the files take up less storage space // to store
more files per amount of storage space;
To allow faster transmission of the files (across a network);
Max 1
Qu Pt Marking Guidance Marks
05 2 Mark is for AO2 (application) 1
(B, 2) (G, 3) (R, 4) (W, 1);
A. Frequency and value either way around if consistent
I. Brackets, spaces and commas, eg B2 G3 R4 W1 is correct.
How to answer it
Data Compression & Run Length Encoding (RLE)
This question evaluates your foundational knowledge of data representation and compression techniques in AQA AS Computer Science:
- AO1 (Understanding): Explaining the primary computational purposes and advantages of file compression.
- AO2 (Application): Applying the Run Length Encoding (RLE) algorithm directly to a given raw sequence of repeating values.
Purpose of File Compression
Explain why digital files are often stored in compressed format.
โ Acceptable Answers (Any 1)
- Storage reduction: To reduce required storage space / so files consume less capacity on secondary storage / allows more files to be stored.
- Transmission speed: To allow faster transmission or download speeds across a network/Internet.
๐ก Key Knowledge
Compression reduces the number of bits needed to store or transmit data.
- Storage impact: Lower capacity requirements on hard drives, SSDs, or optical media.
- Bandwidth impact: Smaller file sizes mean fewer packets sent over networks, reducing transfer latency and bandwidth consumption.
๐ง Exam Technique
Always state the direct outcome. Don't simply say "it makes the file smaller" โ explain why that matters (e.g., saves disk space or transmits faster across a network).
โ Common Errors
- Vague claims such as "makes the computer run faster" or "increases CPU speed".
- Confusing compression with encryption (e.g., "to keep the data secret or safe from hackers").
Applying Run Length Encoding (RLE)
State the RLE for the data shown in Figure 2:
๐ Step-by-Step Run Identification
- Count consecutive B 's: 2 ร B
- Count consecutive G 's: 3 ร G
- Count consecutive R 's: 4 ร R
- Count consecutive W 's: 1 ร W
โ Acceptable Representations
- Standard tuple notation: (B, 2) (G, 3) (R, 4) (W, 1)
- Reversed pair format: (2, B) (3, G) (4, R) (1, W)
- Simplified delimiter-free: B2 G3 R4 W1 or 2B 3G 4R 1W
๐ง Marking Insights
- Consistency is key: If you write frequency first ( 2, B ), you must do that for all runs.
- Punctuation ignored: Examiners ignore brackets, commas, or spaces as long as the run count and character pairs are clearly associated.
โ Common Errors
- Omitting singleton runs: Writing just W instead of (W, 1) or 1W . The algorithm must record a run length for every sequence.
- Swapping order mid-sequence: Mixing formats like B2 3G R4 1W forfeits the mark.
- Miscounting repeating runs: Misreading 4 R 's as 3 or 5.
Topics
4.5 Fundamentals of data representation ยท 4.5.6 Representing images, sound and other data
Question and mark scheme from the AQA A-Level Computer Science examination, AS Paper 2, June 2025. QuestionVault is an independent revision resource; questions remain the copyright of the awarding body.