Skip to topic
    ← Back to course topics

    Topic 2: Data — Edexcel GCSE Computer Science

    Test yourself on Topic 2: Data with PEARSON EDEXCEL GCSE practice questions.

    Start free

    7 days Premium · Then free forever · No card, no charge

    Topic 2: Data explained

    Topic 2 focuses on how computers represent and manipulate data using binary systems.

    Read the full explanation

    It covers the conversion between number systems, the representation of various data types including text, images, and sound, and the principles of data storage and compression.

    Read the Topic 2: Data study guideFull revision notes for Edexcel GCSE Computer Science

    What to demonstrate

    1. Correct conversion between denary, binary, and hexadecimal systems.
    2. Accurate calculation of file sizes and data capacity requirements using binary multiples.
    3. Understanding of binary representation for integers, including unsigned and two's complement.
    Show all 6 objectives
    1. Explanation of how images (pixels, resolution, colour depth) and sound (amplitude, sample rate, bit depth) are digitized.
    2. Distinction between lossy and lossless compression methods.
    3. Correct application of binary addition and shifts.

    Topic 2: Data exam tips

    Topic Overview

    Topic 2: Data in the Edexcel GCSE Computer Science specification covers how computers represent, store, and manipulate data. This includes binary representation of numbers, text, images, and sound, as well as data compression and encryption. Understanding data representation is fundamental because all digital systems rely on binary to process information. This topic also introduces students to the limitations of binary representation, such as overflow and rounding errors, which are critical for writing robust programs.

    Data representation is not just about theory; it directly impacts how we design algorithms and store information efficiently. For example, knowing the difference between lossy and lossless compression helps in choosing the right method for saving files. Encryption ensures secure data transmission, a key concept in cybersecurity. Mastering this topic builds a strong foundation for later topics like networks and databases, as data must be encoded and decoded correctly across systems.

    In the wider subject, Topic 2 connects to programming (e.g., using data types and bitwise operations), hardware (e.g., how memory stores bits), and ethical issues (e.g., data privacy). Students should be comfortable converting between binary, denary, and hexadecimal, and understand how characters are encoded using ASCII and Unicode. This knowledge is tested in both multiple-choice and longer-answer questions, often requiring students to explain trade-offs between different representation methods.

    Key Concepts
    • →Binary representation: All data is stored as sequences of 0s and 1s. Know how to convert between binary and denary (base-10) and perform binary addition, including overflow.
    • →Hexadecimal: A base-16 system used as a shorthand for binary. Convert between hex, binary, and denary, and understand its use in memory addresses and colour codes.
    • →Character encoding: ASCII uses 7 or 8 bits per character (128 or 256 characters), while Unicode uses up to 32 bits to represent characters from all languages. Know the difference and why Unicode is needed.
    • →Images and sound: Bitmap images store colour depth (bits per pixel) and resolution (pixels per inch). Sound is sampled at a sample rate (Hz) with a bit depth (number of bits per sample). Understand how these affect file size and quality.
    • →Compression: Lossless compression (e.g., run-length encoding) reduces file size without losing data, ideal for text and programs. Lossy compression (e.g., JPEG, MP3) discards some data to achieve smaller sizes, suitable for images and audio where minor quality loss is acceptable.
    Marking Points
    • Correct conversion between denary, binary, and hexadecimal systems.
    • Accurate calculation of file sizes and data capacity requirements using binary multiples.
    • Understanding of binary representation for integers, including unsigned and two's complement.
    • Explanation of how images (pixels, resolution, colour depth) and sound (amplitude, sample rate, bit depth) are digitized.
    • Distinction between lossy and lossless compression methods.
    • Correct application of binary addition and shifts.
    Examiner Tips
    • 💡Show all working when performing binary conversions or calculations to gain method marks.
    • 💡Ensure you are familiar with the specific binary prefixes (kibibyte, mebibyte, etc.) as defined in the specification.
    • 💡Practice binary shifts and addition to avoid simple arithmetic errors.
    • 💡Be prepared to explain the trade-offs between file size and quality in compression.
    • 💡Tip 1: Show all working when converting between number bases. Even if your final answer is wrong, you can gain method marks. For example, write out the place values (128, 64, 32, etc.) when converting binary to denary.
    • 💡Tip 2: Understand the difference between 'bit' and 'byte'. A common mistake is confusing them. Remember: 8 bits = 1 byte. File sizes are often given in bytes, kilobytes (KB), megabytes (MB), etc. Know the prefixes (kilo = 1024, mega = 1024^2).
    • 💡Tip 3: For questions on compression or encoding, always mention the trade-off. For example, 'Lossy compression reduces file size but loses some data, which may affect quality. Lossless compression keeps all data but does not reduce file size as much.' This shows deeper understanding.
    Common Mistakes
    • Confusing the difference between bit depth and sample rate in sound representation.
    • Incorrectly calculating file sizes by using decimal multiples (e.g., 1000) instead of binary multiples (e.g., 1024).
    • Failing to account for overflow when performing binary addition.
    • Misunderstanding the difference between lossy and lossless compression applications.
    • Misconception: Binary addition works exactly like denary addition. Correction: Binary addition uses the same principles but only digits 0 and 1. When adding 1+1, the result is 0 with a carry of 1 (like 10 in binary). Overflow occurs when the result has more bits than the allocated storage.
    • Misconception: More bits always mean better quality. Correction: While more bits per sample (bit depth) or higher sample rate improve quality, they also increase file size. There is a trade-off; for example, a 24-bit colour image uses 8 bits per channel (RGB) and can represent 16.7 million colours, but 32-bit adds an alpha channel for transparency, not necessarily better colour quality.
    • Misconception: Lossy compression is always bad. Correction: Lossy compression is acceptable for media where perfect reproduction is not needed, like streaming music or photos. The key is to choose a compression level that balances quality and file size. For text or data that must be exact, lossless compression is required.
    Frequently Asked Questions
    How do I convert binary to denary quickly?
    Write down the place values from right to left: 1, 2, 4, 8, 16, 32, etc. For each 1 in the binary number, add the corresponding place value. For example, 1101 in binary is 8 + 4 + 0 + 1 = 13 in denary. Practice with small numbers first, then move to 8-bit numbers. You can also use the 'double and add' method: start from the leftmost bit, double the current total and add the next bit.
    What is the difference between ASCII and Unicode?
    ASCII is a 7-bit character set that represents 128 characters, including English letters, digits, and punctuation. Extended ASCII uses 8 bits for 256 characters. Unicode is a more comprehensive standard that uses up to 32 bits per character, allowing it to represent characters from virtually all writing systems, including emojis. The main difference is that Unicode can handle many more characters, making it essential for global applications, but it requires more storage space.
    How does sampling affect sound quality?
    Sound is sampled at regular intervals to convert analog waves into digital data. The sample rate (e.g., 44.1 kHz) determines how many samples are taken per second. A higher sample rate captures more detail, resulting in better quality but larger file size. The bit depth (e.g., 16 bits) determines the number of possible amplitude levels per sample. Higher bit depth gives more dynamic range and less quantization noise. For example, CD-quality audio uses 44.1 kHz and 16 bits.
    What is run-length encoding (RLE)?
    Run-length encoding is a simple lossless compression method that replaces consecutive repeated data values (runs) with a single value and a count. For example, the sequence 'AAAAABBBCC' becomes '5A3B2C'. RLE works well for images with large areas of solid colour or simple graphics, but it is inefficient for complex images with many colour changes. It is used in formats like BMP and TIFF.
    Why do we use hexadecimal in computing?
    Hexadecimal (base-16) is used because it provides a more human-friendly representation of binary data. One hex digit represents four binary digits (bits), so long binary strings can be written compactly. For example, the binary number 11111111 is FF in hex. Hex is commonly used for memory addresses, colour codes in HTML (e.g., #FF0000 for red), and debugging. It reduces errors when reading or typing long binary numbers.
    What is overflow in binary addition?
    Overflow occurs when the result of a binary addition exceeds the number of bits allocated to store it. For example, adding 1111 (15) and 0001 (1) in a 4-bit system gives 10000 (16), but only the last 4 bits (0000) are stored, leading to an incorrect result. Overflow is a problem in fixed-width arithmetic and must be handled by checking the carry out of the most significant bit. In programming, overflow can cause bugs if not anticipated.