A Level Computer Science OCR Practice Exam 2025 – All-in-One Guide to Master Your Exam Preparation!

Question: 1 / 400

What does run-length encoding achieve?

Lossy compression

Lossless compression

Run-length encoding (RLE) is a form of lossless compression, meaning it reduces the size of data without losing any information. It works by compressing sequences of repeated data into a single data value and a count. For example, a string like "AAAABBBCCDAA" can be encoded as "4A3B2C1D2A," which saves space by eliminating the redundancy.

This method ensures that the original data can be perfectly reconstructed from the compressed data, maintaining the integrity of the information. Thus, the characteristic of being lossless makes RLE particularly useful in scenarios where preserving the exact data is crucial, such as in image and video compression.

The other options do not accurately describe what run-length encoding achieves: lossy compression would involve information loss, encryption pertains to securing data rather than compressing it, and data retrieval relates to accessing stored information rather than the compression process itself.

Get further explanation with Examzify DeepDiveBeta

Encryption

Data retrieval

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy