Data representation and storage overview - Eduqas GCSE Computer Science
A deep-dive guide to data representation and storage in Eduqas GCSE Computer Science: binary, denary and hexadecimal conversion, binary addition and shifts, two's complement, ASCII and Unicode, the units of data, image and sound file-size calculations, and compression.
Reviewed by: AI editorial process; not yet individually human-reviewed
Jump to a section
This module is the number-and-data heart of Component 1: how computers store numbers, text, images and sound in binary, and how to do the calculations the exam asks for. It is the most calculation-heavy topic, and the marks reward clear working. Each section links to a focused answer page with worked Eduqas questions.
Number systems and binary arithmetic
Computers store everything in binary (base 2). Denary (base 10) is our everyday system and hexadecimal (base 16) is a shorthand where each hex digit equals four bits, so one byte is two hex digits. You must convert between all three: see the number systems page.
Binary addition is column-by-column with carrying, and overflow happens when the result needs more bits than are available. Binary shifts move the bits left (multiplying by powers of two) or right (dividing by powers of two). Both are on the binary addition and shifts page.
To store negatives, the computer uses two's complement, where the leftmost bit has a negative place value: write the positive, invert the bits, add one. The 8-bit range is minus 128 to plus 127. See the two's complement page.
Representing text, images and sound
Text is stored using a character set that maps each character to a binary code. ASCII uses 7 bits (128 codes), enough for English; Unicode uses more bits to cover the world's writing systems and emoji, keeping the first 128 codes the same as ASCII. See the ASCII and Unicode page.
Images are grids of pixels: file size is width times height times colour depth (bits per pixel). Sound is sampled: file size is sample rate times bit depth times seconds. The units of data (bit, nibble, byte, KB, MB, GB, TB) and full worked file-size calculations are on the units and file-size page.
Compression
Compression shrinks files to save space and speed up transfers. Lossy compression permanently removes data for a big size saving (JPEG, MP3); lossless compression keeps every bit so the original is restored exactly (ZIP, PNG), and run-length encoding is a simple lossless method for repetitive data. See the compression page.
How to revise this topic
- Drill conversions until they are automatic. Binary to denary to hexadecimal in every direction, with the place values written out, is worth easy marks if it is fast and accurate.
- Practise the calculations to the right unit. Image and sound file sizes are method-marked; finish in bytes, KB or MB as asked, never leaving the answer in bits.
- Memorise the two's complement method. Invert then add one, and remember the leftmost bit is negative; the 8-bit range is minus 128 to plus 127.
- Learn the compression contrast. Lossy versus lossless, with a sensible use for each, is a recurring four-mark question.
Test yourself with the data representation and storage quiz, then work through each dot-point page for the full worked exam questions.