How are text, images and sound represented as binary, and what determines the file size and quality?
Representing text, images and sound: character sets (ASCII and Unicode), bitmap images with resolution, colour depth and the file-size calculation, and sampled sound with sample rate, bit depth and the file-size calculation.
An Eduqas Component 2 answer on representing text, images and sound: the ASCII and Unicode character sets, bitmap images with resolution and colour depth and the file-size calculation, and sampled sound with sample rate and bit depth and the file-size calculation.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
Eduqas wants you to explain how text, images and sound are represented in binary: the character sets (ASCII and Unicode), bitmap images (resolution, colour depth and the file-size calculation), and sampled sound (sample rate, bit depth and the file-size calculation). The image and sound file-size calculations are examined frequently.
The answer
Representing text: ASCII and Unicode
Representing images: bitmaps and file size
Representing sound: sampling and file size
Examples in context
These representations underlie every file you use: a text document (character set), a photo (bitmap resolution and colour depth) and a music track (sample rate and bit depth). The file-size calculations explain why a high-resolution photo or a high-fidelity audio file is large, and why compression (the next dot point) is so important for storage and transmission. Unicode is why modern software can display any language and emoji. The binary skills from the number-systems dot point are exactly what is being counted in these file-size sums.
Try this
Q1. How many colours can a colour depth of bits represent? [1 mark]
- Cue. colours.
Q2. Calculate the file size in bytes of a pixel image at bits per pixel. [2 marks]
- Cue. bits; bytes.
Q3. Define sample rate. [1 mark]
- Cue. The number of samples (amplitude measurements) taken per second, measured in hertz (Hz).
Exam-style practice questions
Practice questions written in the style of WJEC Eduqas exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Eduqas 20195 marksA bitmap image is pixels wide and pixels high, using a colour depth of bits per pixel. Calculate the file size in bytes (ignoring any header), showing your working, and state what is meant by colour depth.Show worked answer →
Colour depth (up to 1 mark): the number of bits used to represent the colour of each pixel; bits gives possible colours.
File-size calculation (up to 4 marks): number of pixels . Bits bits. Bytes bytes.
Markers reward the bits-per-pixel definition of colour depth, multiplying width by height by colour depth for the total bits, and dividing by to get bytes. A common error is forgetting to divide by .
Eduqas 20216 marksExplain how sound is represented digitally by sampling, define sample rate and bit depth, and calculate the file size of a second mono recording sampled at Hz with a bit depth of bits.Show worked answer →
Sampling (up to 2 marks): the analogue sound wave's amplitude is measured (sampled) at regular intervals and each measurement is stored as a binary number; more frequent, finer samples reproduce the wave more accurately.
Definitions (up to 1 mark): sample rate is the number of samples taken per second (in Hz); bit depth is the number of bits used to store each sample.
File-size calculation (up to 3 marks): samples . Bits bits. Bytes bytes (mono, so one channel).
Markers reward the sample-the-amplitude-at-intervals description, correct definitions, and sample rate duration bit depth, divided by , giving bytes.
Related dot points
- Data representation of numbers: converting between binary, denary and hexadecimal, representing negative numbers with sign and magnitude and two's complement, binary addition and subtraction, and detecting overflow.
An Eduqas Component 2 answer on number representation: converting between binary, denary and hexadecimal, representing negative numbers with sign and magnitude and two's complement, binary addition and subtraction, and detecting overflow.
- Compression, encryption and error checking: lossy and lossless compression (run-length encoding and dictionary methods), symmetric and asymmetric encryption, and error-detection methods (parity, checksums and check digits).
An Eduqas Component 2 answer on compression, encryption and error checking: lossy versus lossless compression with run-length and dictionary methods, symmetric and asymmetric encryption, and error-detection methods including parity, checksums and check digits.
- Floating-point representation: storing a real number as a mantissa and an exponent in two's complement, evaluating a stored floating-point value, normalising a mantissa, and the trade-off between range and precision.
An Eduqas Component 2 answer on floating-point representation: storing a real number as a two's complement mantissa and exponent, evaluating a stored floating-point value, normalising a mantissa, and the trade-off between range and precision.
- Data transmission: serial and parallel transmission, packet switching and the structure of a packet, network protocols and the layers of the TCP/IP stack, and the role of standards in communication.
An Eduqas Component 2 answer on data transmission: serial versus parallel transmission with their trade-offs, packet switching and packet structure, the role of network protocols, and the four layers of the TCP/IP stack.
- Input, output and storage: the role of input and output devices, the memory hierarchy from registers and cache to RAM and secondary storage, and the operating principles, advantages and uses of magnetic, optical and solid-state storage.
An Eduqas Component 2 answer on input, output and storage: the role of input and output devices, the memory hierarchy from registers and cache to RAM and secondary storage, and how magnetic, optical and solid-state (flash) storage work with their advantages and uses.