Data Representation
Aligned to the OCR J277 specification
- Topic
- Memory and storage
- Level
- Intermediate
- Reading time
- 9 min
- Published
- 12 June 2026
- Updated
- 1 July 2026
On this page
Key takeaways
- n bits can represent 2^n different values - this governs character sets (7-bit ASCII = 128 characters), colour depth (8-bit = 256 colours), and audio bit depth.
- Unicode extends ASCII and is backwards-compatible - its first 128 values are identical to ASCII codes; it does not replace ASCII, it subsumes it.
- Image file size = colour depth (bits) x height (pixels) x width (pixels); increasing colour depth from 8-bit to 24-bit triples the file size.
- Audio file size = sample rate x duration (seconds) x bit depth; sample rate affects how often you measure, bit depth affects how precisely each sample is stored.
- Lossy compression permanently removes data and cannot be undone; lossless compression reduces size without losing any data so the original can be perfectly reconstructed.
How much of this have you taken in?
Quiz yourself on this section, free, no card needed.
Key terms
- Character set
- A standard mapping from characters (letters, digits, punctuation) to binary codes used by computers to store and exchange text.
- ASCII
- American Standard Code for Information Interchange - a 7-bit (or 8-bit) character set representing 128 (or 256) characters including letters, digits, and punctuation.
- Unicode
- A character set using 16 or 32 bits per character that can represent over 1 million characters from every written language, backwards-compatible with ASCII.
- Pixel
- The smallest unit of a digital image; each pixel has one colour stored as a binary number.
- Colour depth
- The number of bits used to represent the colour of a single pixel; higher colour depth means more colours and a larger file size.
- Resolution
- The number of pixels in an image (width times height); higher resolution means more detail and a larger file size.
- Metadata
- Additional information stored alongside image data (such as dimensions and colour depth) needed to interpret the file correctly, not part of the visible image.
- Sampling
- The process of measuring the amplitude of a sound wave at regular intervals to convert an analogue signal into discrete digital values.
- Sample rate
- The number of audio samples taken per second, measured in Hz; higher sample rate means better quality and larger file size.
- Bit depth
- The number of bits used to store each audio sample; higher bit depth means more precise amplitude measurement and a larger file size.
- Lossy compression
- Compression that permanently removes data judged least important to perception; achieves high compression ratios but quality cannot be restored.
- Lossless compression
- Compression that encodes data more efficiently without removing any information; the original file can be perfectly reconstructed on decompression.
Frequently asked questions
ASCII uses 7 or 8 bits and represents up to 256 characters, covering basic Latin letters, digits, and punctuation. Unicode uses more bits (16 or 32) and can represent over 1 million characters including every written language and emoji. The first 128 Unicode values match ASCII exactly.
Resolution is the number of pixels in the image (width times height), affecting the amount of detail. Colour depth is the number of bits used per pixel, affecting how many colours are available. Both affect file size but through different mechanisms.
Use lossy compression when file size matters more than perfect quality, such as streaming music or video, sharing images on websites, or phone calls. Use lossless when data must be exactly preserved, such as text files, executable programs, or medical images.
Generate revision on any topic you study
Type any topic you're studying and Aicademy generates a complete lesson, quiz, and flashcard set, personalised to your level.
Lessons on anything
Structured, level-matched lessons on any topic you study
Practice quizzes
Find out what you actually know before the exam does
Flashcard sets
Lock in key concepts with instant revision cards
Ask Aica
Stuck on something? Get a clear explanation, any time
Number Systems and Data Units
Networks and Topologies
Related lessons
7 min
7 min
6 min
7 min