Pearson Edexcel · GCSE · Computer Science

    Course version: Pearson-GCSE-Computer-Science · Version from Mar 2026

    Topic 2: Data

    This topic demystifies how computers store and process every piece of information using only zeros and ones. Mastering data representation is essential for scoring highly in your GCSE Computer Science exam, as it forms the foundation for understanding computer architecture, networks, and programming.

    • 6 min read
    • 3 worked examples
    • 5 practice questions
    • 6 key terms

    Study Notes

    Overview

    At its core, Computer Science is the study of how we manipulate data to solve problems. But before a computer can manipulate data, it must be able to store it. This topic, Data Representation, explores exactly how that happens.

    Why is this important? Because a computer's central processing unit (CPU) is essentially a massive collection of microscopic electronic switches. These switches can only be in one of two states: ON or OFF. Therefore, every single piece of data—whether it's a high-definition photograph, a complex 3D game, a text document, or a hit song—must ultimately be translated into a series of ON and OFF signals. We represent these states using the numbers 1 (ON) and 0 (OFF). This base-2 number system is called binary.

    In your exam, you will be tested on your ability to convert between different number systems (binary, denary, and hexadecimal), calculate the file sizes of images and sound files, perform binary arithmetic, and explain the principles of data compression. This topic connects heavily to Computer Systems (how the CPU processes these binary instructions) and Networks (how binary data is transmitted across the internet).

    Key Concepts

    Concept 1: Number Systems (Denary, Binary, and Hexadecimal)

    Humans naturally use denary (base-10) because we have ten fingers. Denary uses ten digits (0-9), and each column represents a power of 10 (1s, 10s, 100s, 1000s).

    Computers use binary (base-2) because they are built from electronic circuits with two states. Binary uses two digits (0 and 1), and each column represents a power of 2 (1, 2, 4, 8, 16, 32, 64, 128).

    Hexadecimal (base-16) is used by computer scientists as a shorthand for binary. It is much easier for humans to read and write "B6" than "10110110". Hexadecimal uses sixteen digits: 0-9, and then the letters A-F to represent the values 10-15.

    Number System ConversionsOpen full-size image (opens in a new tab)

    Why it works: To convert binary to denary, simply write the binary number under a place value table and add up the column headings where there is a 1. To convert denary to binary, find the largest power of 2 that fits into the number, subtract it, place a 1 in that column, and repeat with the remainder.

    Concept 2: Binary Addition and Shifts

    Computers perform arithmetic using logic gates. In your exam, you must be able to add two 8-bit binary numbers together.

    The rules are simple:

    • 0 + 0 = 0
    • 0 + 1 = 1
    • 1 + 1 = 0 (carry 1)
    • 1 + 1 + 1 = 1 (carry 1)

    Overflow Error: If you add two 8-bit numbers and the result requires 9 bits, the extra bit falls off the end and is lost. This is called an overflow error, and it leads to incorrect calculations or system crashes.

    A binary shift is a quick way to multiply or divide by powers of 2.

    • A logical shift left by one place multiplies the number by 2.
    • A logical shift right by one place divides the number by 2 (discarding any remainder).

    Concept 3: Representing Images

    Digital images are divided into a grid of tiny squares called pixels (picture elements). Each pixel is assigned a single colour, and that colour is stored as a binary number.

    The colour depth is the number of bits used to store the colour of a single pixel.

    • 1-bit colour depth = 2^1 = 2 colours (black and white)
    • 8-bit colour depth = 2^8 = 256 colours
    • 24-bit colour depth = 2^{24} = 16.7 million colours (True Colour)

    Increasing the colour depth improves the quality and realism of the image, but it also increases the file size because more bits are required for every single pixel.

    Image and Sound DigitisationOpen full-size image (opens in a new tab)

    Concept 4: Representing Sound

    Sound is naturally an analogue, continuous wave. To store it digitally, an analogue-to-digital converter (ADC) must take samples of the sound wave at regular intervals.

    The sample rate is the number of samples taken per second, measured in Hertz (Hz). CD-quality audio has a sample rate of 44,100 Hz (44.1 kHz).

    The bit depth (or sample resolution) is the number of bits used to store the amplitude value of each sample. A higher bit depth means the amplitude is measured more precisely.

    Increasing either the sample rate or the bit depth will improve the playback quality (making it closer to the original analogue wave) but will increase the file size.

    Concept 5: Data Compression

    Compression reduces the size of a file so it takes up less storage space and can be transmitted across a network faster.

    Lossy compression permanently removes data to significantly reduce file size. It is used for images (JPEG), audio (MP3), and video (MP4) where a slight drop in quality is acceptable to human senses. The original file cannot be perfectly reconstructed.

    Lossless compression reduces file size without losing any data. It works by finding patterns and replacing them with shorter representations (e.g., Run Length Encoding). It is essential for text documents, executable programs, and ZIP files where losing even a single bit would corrupt the file. The original file can be perfectly reconstructed.

    Lossy vs Lossless CompressionOpen full-size image (opens in a new tab)

    Mathematical/Scientific Relationships

    File Size Calculations

    Image File Size (in bits):
    \text{File Size} = \text{Width (pixels)} \times \text{Height (pixels)} \times \text{Colour Depth (bits)}
    (Must memorise)

    Sound File Size (in bits):
    \text{File Size} = \text{Sample Rate (Hz)} \times \text{Bit Depth (bits)} \times \text{Duration (seconds)}
    (Must memorise)

    Text File Size (in bits):
    \text{File Size} = \text{Number of Characters} \times \text{Bits per Character}
    (Must memorise)

    Binary Multiples

    Examiners require you to use binary multiples (powers of 2) rather than decimal multiples (powers of 10) when calculating file sizes.

    • 1 Nibble = 4 bits
    • 1 Byte = 8 bits
    • 1 Kibibyte (KiB) = 1024 bytes (2^{10})
    • 1 Mebibyte (MiB) = 1024 KiB (2^{20})
    • 1 Gibibyte (GiB) = 1024 MiB (2^{30})
    • 1 Tebibyte (TiB) = 1024 GiB (2^{40})

    Note: If you are asked to calculate a file size in kilobytes (KB) in a specific exam board context, check your specification. However, standard computer science practice uses 1024.

    Check what you remember

    Read the wording for your board, then hide it and explain Pixel in your own words. Rough notes are fine. This is a self-check, with no mark or grade.

    Reference: Pearson Edexcel

    The smallest addressable element of a digital image. Short for picture element.
    Pearson Edexcel

    Interactive Diagrams

    2 interactive diagrams to visualise key concepts

    Conceptual Flow Outline

    Analogue Sound Wave
    ➔Microphone
    Microphone
    ➔Analogue to Digital Converter (ADC)
    Analogue to Digital Converter (ADC)
    ➔Takes samples at regular intervals (Sample Rate)
    Takes samples at regular intervals (Sample Rate)
    ➔Records amplitude using binary (Bit Depth)
    Records amplitude using binary (Bit Depth)
    ➔Digital Audio File (Binary Data)

    The process of digitising sound from an analogue wave to a digital file.

    Conceptual Flow Outline

    Original Image File (10MB)
    ➔Compression Type Required?
    Compression Type Required?
    ➔"Web viewing / Fast loading"Lossy Compression (JPEG)
    ➔"Professional editing / Archiving"Lossless Compression (PNG)
    Lossy Compression (JPEG)
    ➔Data permanently removed
    Lossless Compression (PNG)
    ➔Patterns encoded, no data lost
    Data permanently removed
    ➔Compressed File (1MB) - Lower Quality
    Patterns encoded, no data lost
    ➔Compressed File (4MB) - Original Quality

    Decision tree for selecting the appropriate compression algorithm for an image.

    Worked Examples

    3 worked examples — open one to explore the question and available guidance.

    Practice Questions

    Try the question, then reveal an answer plan or example response

    Q1

    Convert the denary number 105 into 8-bit binary.

    1 mark
    foundation

    Hint: Write out your place value table starting from 128 on the left down to 1 on the right.

    Q2

    Add the following two 8-bit binary numbers: 01011011 and 00110110.

    2 marks
    standard

    Hint: Remember that 1 + 1 = 0 carry 1, and 1 + 1 + 1 = 1 carry 1.

    Q3

    Convert the hexadecimal number 3F into denary. Show your working.

    2 marks
    standard

    Hint: Convert the hex to binary first, or multiply the first digit by 16 and add the second digit.

    Q4

    Explain how the file size of a digital image is affected by its colour depth.

    3 marks
    challenging

    Hint: Define colour depth first, then explain the mathematical relationship.

    Q5

    A software company is distributing a new video game. Explain why they would use lossless compression for the game's executable code files, but might use lossy compression for the game's cutscene videos.

    4 marks
    challenging

    Hint: Think about what happens if data is permanently lost from code versus a video.

    Ready to test yourself interactively?

    Active recall beats reading alone. Answer questions on Topic 2: Data with instant AI scoring and mark scheme guidance.

    Start interactive practice

    A week of Premium from your first lesson · Then the free plan continues · No card, no charge

    Exam technique

    How to turn what you know into marks

    How to approach the question

    Always underline the command word and the required units (e.g., bits, bytes, KB). For calculations, write out the formula first, substitute the numbers, and show every step.

    How to structure your answer

    For 4-6 mark 'Explain' or 'Compare' questions, use bullet points or clear paragraphs. Make a point, then immediately explain the consequence using 'therefore' or 'because'.

    Timing

    Approximately 1 minute per mark, so a 6-mark question should take about 6-7 minutes

    Common pitfalls

    • Forgetting to divide by 8 when a question asks for file size in BYTES, because the initial calculation (width x height x colour depth) gives the answer in BITS.
    • Confusing the applications of lossy and lossless compression. Never say a text file uses lossy compression.
    • Losing the 'carry' bit in binary addition, or failing to mention that an extra 9th bit results in an overflow error.

    What the command words want

    Compare
    Identify similarities AND differences - use comparative language (whereas, similarly).
    Explain
    Say HOW or WHY - use 'because' to link cause and effect. This is where you earn the higher marks.
    Describe
    Say what happens or what something is like - use correct terminology.
    Evaluate
    Consider both sides, use evidence, make a judgement.
    Calculate
    Show working, use correct formula, include units. Method marks are available.
    State/Give
    Brief factual answer - 1-2 words or a short phrase. No explanation needed.
    Watch or listen (optional)
    🎙 Podcast Episode
    Topic 2: Data
    0:00-0:00

    Test your understanding of Topic 2: Data

    Active recall beats re-reading. Take an instant quiz now to test what you’ve learned and lock it into long-term memory.

    Take topic quiz

    A week of Premium from your first lesson · Then the free plan continues · No card, no charge

    More Computer Science Study Guides

    View all

    Algorithms

    Pearson Edexcel
    GCSE

    Master the logic behind every computer program. This topic covers how to design, trace, and evaluate algorithms using sequence, selection, and iteration, plus the essential searching and sorting techniques you'll need for your exam.

    Binary

    Pearson Edexcel
    GCSE

    Mastering binary is essential for understanding how computers store and process all data. This topic covers converting between number bases, performing binary arithmetic, understanding shifts, and recognizing overflow — key skills that frequently appear in exams and form the foundation of computer science.

    Constructs

    Pearson Edexcel
    GCSE

    Master the fundamental building blocks of all software: Sequence, Selection, and Iteration. This topic is the core of Computer Science and tests your ability to think like a real programmer, enabling you to read, trace, and write code confidently for the exam.

    Cybersecurity

    Pearson Edexcel
    GCSE

    Master the critical threats to digital systems and the methods used to protect them. This high-yield GCSE Computer Science topic explores malware, social engineering, and the technical defences essential for earning top marks.

    Data

    Pearson Edexcel
    GCSE

    Master the language of computers. This topic covers how binary underpins everything from text and images to sound and data compression, ensuring you can secure crucial calculation marks in your exam.

    Data storage and compression

    Pearson Edexcel
    GCSE

    Master the fundamentals of binary data storage and the critical importance of compression. This topic is calculation-heavy and frequently tested, requiring you to confidently convert between binary units and understand the trade-offs between lossless and lossy compression methods.