Skip to topic
    ← Back to course topics

    Data — Edexcel GCSE Computer Science

    Test yourself on Data with PEARSON EDEXCEL GCSE practice questions.

    Start free

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

    Data explained

    This topic covers the fundamental principles of how computers represent and store data using binary systems.

    Read the full explanation

    It encompasses the conversion between number systems, the representation of various data types including text, images, and sound, and the calculation of data storage requirements alongside compression techniques.

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

    What to demonstrate

    1. Correct conversion between denary, binary, and hexadecimal number systems.
    2. Accurate calculation of file sizes and data capacity using binary multiples.
    3. Correct application of binary addition and logical/arithmetic shifts.
    Show all 8 objectives
    1. Understanding of overflow errors in binary arithmetic.
    2. Explanation of how characters are encoded using ASCII.
    3. Description of how bitmap images are represented via pixels, resolution, and colour depth.
    4. Explanation of how analogue sound is represented through sampling (amplitude, sample rate, bit depth).
    5. Distinction between lossy and lossless data compression methods.

    Data exam tips

    Topic Overview

    Data in Computer Science covers how information is represented, stored, and processed by computers. This includes understanding different data types (integer, real, char, string, Boolean), how data is organised into structures like arrays and records, and how it flows through programs using variables and constants. Mastering data is essential because every program manipulates data — without a solid grasp, you cannot write effective code or understand how computers work.

    In the Edexcel GCSE, data is a foundational topic that links to programming, algorithms, and databases. You'll learn about binary representation, including how numbers and text are encoded (e.g., ASCII, Unicode), and how data is measured in bits, bytes, kilobytes, etc. Understanding data also involves knowing about validation and verification to ensure accuracy. This topic matters because it underpins everything from simple calculations to complex data analysis in the real world.

    Key Concepts
    • →Data types: integer, real (float), char, string, Boolean — each has a specific purpose and memory size.
    • →Variables and constants: variables store data that can change, constants store fixed values; both must be declared with a data type.
    • →Binary representation: how positive integers are represented in binary, including conversion between denary and binary.
    • →Character encoding: ASCII (7-bit) and Unicode (16-bit) map characters to binary codes; Unicode supports more characters.
    • →Data structures: arrays (one-dimensional) store multiple items of the same type; records group related data of different types.
    Marking Points
    • Correct conversion between denary, binary, and hexadecimal number systems.
    • Accurate calculation of file sizes and data capacity using binary multiples.
    • Correct application of binary addition and logical/arithmetic shifts.
    • Understanding of overflow errors in binary arithmetic.
    • Explanation of how characters are encoded using ASCII.
    • Description of how bitmap images are represented via pixels, resolution, and colour depth.
    • Explanation of how analogue sound is represented through sampling (amplitude, sample rate, bit depth).
    • Distinction between lossy and lossless data compression methods.
    Examiner Tips
    • 💡Show all working out for binary conversions and arithmetic to gain method marks.
    • 💡Ensure you clearly label units when calculating file sizes.
    • 💡Practice binary shifts carefully, noting the difference between logical and arithmetic shifts.
    • 💡Remember that overflow occurs when the result of an operation exceeds the number of bits available for storage.
    • 💡Be prepared to explain the trade-offs between file quality and file size in compression.
    • 💡When answering questions about data types, always specify the exact type (e.g., 'integer' not 'number') and give a reason why it's appropriate for the given context.
    • 💡For binary conversion questions, show your working clearly — write out place values (128, 64, 32, etc.) and indicate which bits are on. Partial marks are often awarded for method.
    • 💡In programming questions, remember to declare variables with appropriate data types and initialise them if needed. Examiners look for correct syntax and logical use of data structures.
    Common Mistakes
    • Confusing the number of bits available with the range of values that can be represented.
    • Incorrectly applying two's complement for negative numbers.
    • Failing to account for the impact of resolution and colour depth on image file size.
    • Miscalculating file sizes by using decimal multiples (e.g., 1000) instead of binary multiples (e.g., 1024).
    • Confusing lossy and lossless compression scenarios.
    • Misconception: 'A string is a single character.' Correction: A string is a sequence of characters (e.g., 'Hello'), while a single character is a char data type (e.g., 'H').
    • Misconception: 'Binary only uses 0s and 1s, so it's easy to add.' Correction: Binary addition follows rules similar to denary but with carries; overflow can occur if the result exceeds the number of bits.
    • Misconception: 'All data types use the same amount of memory.' Correction: Different data types require different memory sizes — e.g., an integer typically uses 4 bytes, a char uses 1 byte, and a Boolean may use 1 bit or 1 byte depending on the language.
    Frequently Asked Questions
    What is the difference between a variable and a constant?
    A variable is a named storage location in memory whose value can change during program execution. For example, a score variable might increase as the game progresses. A constant is also a named storage location, but its value cannot be changed once assigned. Constants are used for fixed values like PI or the number of days in a week. In code, constants are often declared with the keyword 'const' to prevent accidental modification.
    How do you convert denary to binary?
    To convert a denary (base 10) number to binary (base 2), you repeatedly divide the number by 2 and record the remainders. For example, to convert 13: 13 ÷ 2 = 6 remainder 1, 6 ÷ 2 = 3 remainder 0, 3 ÷ 2 = 1 remainder 1, 1 ÷ 2 = 0 remainder 1. Reading the remainders from bottom to top gives 1101. Alternatively, you can subtract powers of 2: 13 = 8 + 4 + 1, so bits for 8, 4, and 1 are 1, and the bit for 2 is 0, giving 1101.
    What is ASCII and why is it important?
    ASCII (American Standard Code for Information Interchange) is a character encoding scheme that represents text in computers using 7-bit binary codes (0-127). It assigns a unique number to each character, such as 'A' = 65 (1000001). ASCII is important because it provides a standard way for computers to store and exchange text data. However, it only supports English characters, so Unicode (which uses 16 bits) was developed to include characters from many languages.
    What is the difference between an array and a record?
    An array is a data structure that stores multiple items of the same data type in a single variable, accessed by an index (e.g., scores[0], scores[1]). A record is a data structure that groups together related items of different data types, each with a field name (e.g., a student record might have fields: name (string), age (integer), grade (char)). Arrays are used for lists of similar data, while records are used for collections of diverse data about one entity.
    How do you validate data input in a program?
    Validation checks that input data meets certain rules before it is processed. Common methods include: range check (e.g., age between 0 and 120), type check (e.g., input must be numeric), length check (e.g., password at least 8 characters), and presence check (e.g., field cannot be blank). For example, in Python, you might use a while loop to repeatedly ask for input until a valid integer is entered. Validation helps prevent errors and ensures data quality.
    What is overflow in binary addition?
    Overflow occurs when the result of a binary addition exceeds the number of bits available to store it. For example, adding 127 (01111111) and 1 (00000001) in an 8-bit system gives 128 (10000000), but the leftmost bit is the sign bit in signed representation, so it might be interpreted as -128. In unsigned addition, the carry-out of the most significant bit indicates overflow. Overflow can lead to incorrect results, so programmers must ensure enough bits are used or handle it with checks.