Pearson Edexcel · GCSE · Computer Science

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

    Data

    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.

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

    Study Notes

    Overview

    Data representation is the foundational language of computing. Every photo you take, every message you send, and every video you stream is ultimately reduced to a sequence of 1s and 0s. In this topic, we explore how computers achieve this remarkable feat using the binary number system.

    This topic is crucial because it forms the basis of computer architecture, networks, and programming. Examiners love to test your understanding here through calculations (converting between number systems, calculating file sizes) and explanations (comparing compression techniques). A solid grasp of binary arithmetic and data formats will secure you significant marks across both exam papers.


    Listen to the Revision Podcast

    Before diving into the detailed notes, listen to our 10-minute audio guide. It covers all the core concepts, common exam mistakes, and includes a quick-fire recall quiz.


    Key Concepts

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

    Humans use denary (base-10), which has 10 digits (0-9). Computers use binary (base-2) because their processors are made of billions of microscopic switches (transistors) that can only be in one of two states: ON (1) or OFF (0).

    To make binary easier for humans to read, we use hexadecimal (base-16). Hexadecimal uses 16 digits: 0-9, followed by A-F (where A=10, B=11, C=12, D=13, E=14, F=15).

    The magic rule of hexadecimal is that exactly 4 binary digits (a nibble) equal 1 hexadecimal digit. This makes converting between the two incredibly fast and efficient.

    Number Systems ComparisonOpen full-size image (opens in a new tab)

    Example: To convert the denary number 156 to binary, we use positional values (powers of 2: 128, 64, 32, 16, 8, 4, 2, 1).
    156 = 128 + 16 + 8 + 4.
    Placing a 1 under those values gives us 10011100.

    To convert 10011100 to hexadecimal, split it into two 4-bit nibbles: 1001 and 1100.

    • 1001 = 9
    • 1100 = 12 (which is C in hex)
      So, 156 in denary is 9C in hexadecimal.

    Concept 2: Binary Arithmetic and Shifts

    Computers must perform calculations using binary. You need to know how to add two 8-bit binary numbers.
    The rules are:

    • 0 + 0 = 0
    • 0 + 1 = 1
    • 1 + 1 = 10 (0, carry 1)
    • 1 + 1 + 1 = 11 (1, carry 1)

    If adding two 8-bit numbers results in a 9-bit answer, this is called an overflow error. The computer cannot store the extra bit, leading to an inaccurate result.

    A binary shift moves all the bits in a binary number left or right.

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

    Concept 3: Representing Text

    Computers represent text by assigning a unique binary number to every character. This mapping is called a character set.

    • ASCII: Uses 7 bits per character, allowing for 128 unique characters (enough for the English alphabet, numbers, and basic punctuation).
    • Extended ASCII: Uses 8 bits, allowing for 256 characters.
    • Unicode: Uses 16 or 32 bits, allowing for millions of characters, encompassing every language in the world, plus emojis.

    Concept 4: Representing Images and Sound

    Images are stored as a grid of tiny squares called pixels (picture elements).

    • Resolution is the total number of pixels (width × height).
    • Colour depth is the number of bits used to represent the colour of a single pixel. A 1-bit colour depth gives 2 colours (black and white). An 8-bit colour depth gives 256 colours.

    Sound is analogue (continuous). To store it digitally, the sound wave must be sampled at regular intervals.

    • Sample rate: How many samples are taken per second (measured in Hertz, Hz).
    • Bit depth: The number of bits used to record the amplitude of each sample.
      Higher sample rates and bit depths improve audio quality but increase the file size.

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

    Concept 5: Data Compression

    Compression reduces the size of a file. This is vital because it saves storage space on the disk and reduces the time (and bandwidth) required to transmit the file over a network.

    • Lossy Compression: Permanently removes data that humans are unlikely to notice (e.g., very high audio frequencies or slight colour variations). The file cannot be restored to its exact original state. Used for JPEGs and MP3s.
    • Lossless Compression: Reduces file size without losing any data, often by looking for repeating patterns (like Run Length Encoding). The file can be perfectly reconstructed. Used for text documents, code, and PNG images.

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


    Mathematical/Scientific Relationships

    You must memorise the following formulas and units for the exam.

    **Data Units (Binary Multiples)**Examiners expect you to use base-2 multiples, not base-10.

    • 1 Nibble = 4 bits
    • 1 Byte = 8 bits
    • 1 Kilobyte (KB) = 1024 bytes
    • 1 Megabyte (MB) = 1024 KB
    • 1 Gigabyte (GB) = 1024 MB
    • 1 Terabyte (TB) = 1024 GB

    Image File Size Formula
    File Size (bits) = Image Width × Image Height × Colour Depth
    (To convert to bytes, divide the result by 8)

    Sound File Size Formula
    File Size (bits) = Sample Rate (Hz) × Bit Depth × Duration (seconds)
    (Multiply by 2 if the audio is stereo)


    Practical Applications

    • Hexadecimal in Web Design: HTML and CSS use hexadecimal codes to represent colours. For example, #FF0000 represents pure red. FF is the maximum value (255) for the red channel, while green and blue are 00.
    • Compression in Streaming: Services like Netflix and Spotify rely heavily on lossy compression algorithms. Without compression, streaming a 4K movie over a standard internet connection would be impossible due to the massive file sizes.

    Check what you remember

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

    Reference: Pearson Edexcel

    A defined list of characters recognized by the computer hardware and software, where each character is represented by a unique binary number.
    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)
    ➔Samples taken at regular intervals (Sample Rate)
    Samples taken at regular intervals (Sample Rate)
    ➔Amplitude of each sample recorded as binary (Bit Depth)
    Amplitude of each sample recorded as binary (Bit Depth)
    ➔Digital Sound File Stored

    The process of converting analogue sound to digital data.

    Conceptual Flow Outline

    Binary: 10110110
    ➔Split into nibbles
    Split into nibbles
    ➔1011
    1011
    ➔Denary: 11
    0110
    ➔Denary: 6
    Denary: 11
    ➔Hex: B
    Denary: 6
    ➔Hex: 6
    Hex: 6
    ➔Final Hex: B6

    Step-by-step process of converting Binary to Hexadecimal.

    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

    Add the following two 8-bit binary numbers: 01101011 and 00111100. (2 marks)

    2 marks
    standard

    Hint: Write them out one above the other and remember the rule: 1+1 = 0 carry 1.

    Q2

    Explain why a programmer might choose to use hexadecimal to represent colours in a program instead of binary. (2 marks)

    2 marks
    standard

    Hint: Think about how many digits are needed for a 24-bit colour in binary versus hex.

    Q3

    A student is recording a podcast. Explain how increasing the sample rate will affect the recording. (3 marks)

    3 marks
    challenging

    Hint: Think about both the quality of the audio and the impact on the computer's storage.

    Q4

    A text file contains 5000 characters. The computer uses standard ASCII. Calculate the file size in kilobytes. Show your working. (3 marks)

    3 marks
    standard

    Hint: How many bits are in standard ASCII? Once you have total bits, convert to bytes, then KB.

    Q5

    Explain why lossy compression is suitable for a video streaming service but not suitable for a text document. (4 marks)

    4 marks
    challenging

    Hint: What happens to data in lossy compression? Does it matter if a video loses a tiny bit of data? Does it matter if a text file does?

    Ready to test yourself interactively?

    Active recall beats reading alone. Answer questions on 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

    For calculation questions, always write down the formula first, then substitute the numbers. For explanation questions, use bullet points in your plan to ensure you make enough distinct points for the marks available.

    How to structure your answer

    For 'Explain' questions, use the 'Point + Because' structure. Make your statement, then justify it.

    Timing

    Approximately 1 minute per mark. A 4-mark explanation question should take 4-5 minutes.

    Common pitfalls

    • Using 1000 instead of 1024 for KB/MB/GB conversions.
    • Forgetting to divide by 8 when a question asks for a file size in bytes, but the colour depth or bit depth is given in bits.
    • In binary addition, forgetting to show the 'carry' bits in your working.

    What the command words want

    Compare
    Identify similarities AND differences. Use words like 'whereas', 'similarly', or 'in contrast'.
    Explain
    Set out purposes or reasons. 'Why does it happen?' Use 'because'.
    Describe
    Set out characteristics. 'What is it?'
    Calculate
    Show working, use correct formula, include units. Method marks are available even if the final answer is wrong.
    State/Give
    Brief factual answer - 1-2 words or a short phrase. No explanation needed.
    Watch or listen (optional)
    🎙 Podcast Episode
    Data
    0:00-0:00

    Test your understanding of 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