How are characters, images and sound represented in binary, and what affects their file size?
Representing characters with ASCII and Unicode; representing images with pixels, colour depth, resolution and metadata; representing sound with sample rate, sample resolution and bit rate; and the effect on file size and quality.
An OCR J277 1.2.4 answer on representing characters (ASCII, Unicode), images (pixels, colour depth, resolution, metadata) and sound (sample rate, sample resolution, bit rate), and the effect of each on file size and quality.
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
OCR wants you to explain how characters, images and sound are each turned into binary, to know the factors that control image and sound quality and file size, and to calculate file sizes. The image and sound file-size calculations are common Paper 1 questions, so learn the two formulas and always show working.
Representing characters
Representing images
Representing sound
Try this
Q1. State what is meant by the colour depth of an image. [1 mark]
- Cue. The number of bits used to store the colour of each pixel ( bits give colours).
Q2. An image is 100 by 100 pixels at 2 bits per pixel. Calculate its size in bytes, ignoring metadata. [2 marks]
- Cue. bits, bytes.
Q3. State one difference between ASCII and Unicode. [1 mark]
- Cue. ASCII uses 7 (or 8) bits and covers basic English; Unicode uses more bits and covers all languages and emoji.
Exam-style practice questions
Practice questions written in the style of OCR exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
OCR 20214 marksAn image is 200 pixels wide and 150 pixels high and uses a colour depth of 3 bits per pixel. Calculate the size of the image in bytes, ignoring metadata. Show your working.Show worked answer →
Image size in bits is width times height times colour depth.
pixels. bits.
Convert to bytes by dividing by 8: bytes.
Markers reward the formula (pixels times colour depth), the correct bit total, and the conversion to bytes. Forgetting the divide-by-8, or multiplying by the colour depth wrongly, loses marks. Showing working secures method marks.
OCR 20224 marksExplain how the sample rate and the sample resolution each affect the file size and the quality of a digital sound recording.Show worked answer →
Sample rate is the number of samples taken per second (measured in hertz). A higher sample rate captures the sound wave more often, giving a more accurate, higher-quality recording, but it produces more samples per second so the file is larger.
Sample resolution (bit depth) is the number of bits used to store each sample. More bits per sample record the amplitude of each sample more precisely, improving quality, but again increase the file size because every sample takes more bits.
Markers reward linking each factor to both quality (more accurate capture) and file size (more data), and being clear that increasing either improves quality at the cost of a larger file.
Related dot points
- Why data must be represented in binary, the units of information (bit, nibble, byte, kB, MB, GB, TB, PB) and how to convert between them.
An OCR J277 1.2.3 answer on why computers use binary, the units of information from bit and nibble up to petabyte, and how to convert between units of data capacity.
- Converting between denary and binary (up to and including 8 bits), binary addition and the detection of overflow, and binary shifts and their effect.
An OCR J277 1.2.4 answer on converting between denary and binary up to 8 bits, adding binary numbers and detecting overflow, and binary shifts and their effect on a value.
- Why hexadecimal is used to represent numbers, and how to convert between binary, denary and hexadecimal.
An OCR J277 1.2.4 answer on why hexadecimal is used in computing and how to convert between binary, denary and hexadecimal, with worked conversions in both directions.
- The need for compression and the difference between lossy and lossless compression, with their typical uses.
An OCR J277 1.2.5 answer on the need for data compression and the difference between lossy and lossless compression, including how each works and their typical uses.
- The need for primary storage, the purpose and characteristics of RAM and ROM, the differences between them, and the need for virtual memory.
An OCR J277 1.2.1 answer on the need for primary storage, the purpose and characteristics of RAM and ROM, the differences between them, and why virtual memory is needed.
Sources & how we know this
- OCR GCSE (9-1) Computer Science (J277) specification — OCR (2020)