Skip to main content
EnglandComputer ScienceSyllabus dot point

What are the units of data, and how do you calculate the size of an image or sound file?

The units of data (bit, nibble, byte, kilobyte, megabyte, gigabyte, terabyte), how images are stored as pixels (resolution and colour depth), how sound is sampled (sample rate and bit depth), and calculating file sizes.

An Eduqas GCSE Computer Science answer on the units of data, how images (resolution and colour depth) and sound (sample rate and bit depth) are represented in binary, and full worked calculations of image and sound file sizes.

Generated by Claude Opus 4.812 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The units of data
  3. Representing and sizing images
  4. Representing and sizing sound
  5. Try this

What this dot point is asking

Eduqas wants you to know the units of data and to calculate the size of an image (from its resolution and colour depth) and a sound file (from its sample rate, bit depth and duration). These are the main calculation questions on Component 1, and they are heavily method-marked, so the working matters as much as the answer.

The units of data

Representing and sizing images

Representing and sizing sound

Try this

Q1. State how many bits are in a byte. [1 mark]

  • Cue. 88 bits.

Q2. An image is 100100 by 100100 pixels with a colour depth of 22 bits. Calculate the file size in bytes. [3 marks]

  • Cue. 100×100×2=20000100 \times 100 \times 2 = 20000 bits, divided by 8=25008 = 2500 bytes.

Q3. A 55-second clip is sampled at 10001000 Hz with a bit depth of 88 bits. Calculate the file size in bytes. [3 marks]

  • Cue. 1000×8×5=400001000 \times 8 \times 5 = 40000 bits, divided by 8=50008 = 5000 bytes.

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 Component 1, 20224 marksA bitmap image is 200 pixels wide by 150 pixels high and uses a colour depth of 4 bits per pixel. Calculate the file size in kilobytes. Show your working.
Show worked answer →

Total pixels: 200 times 150 = 30000 pixels.

Total bits: 30000 times 4 = 120000 bits.

Convert to bytes: 120000 divided by 8 = 15000 bytes.

Convert to kilobytes: 15000 divided by 1000 = 15 KB (using 1 KB = 1000 bytes, as Eduqas accepts at GCSE).

Markers award one mark each for pixels, bits, bytes and the final KB. Carrying the wrong unit (leaving the answer in bits) loses the final mark.

Eduqas Component 1, 20234 marksA sound clip is recorded for 10 seconds at a sample rate of 8000 Hz with a bit depth of 8 bits. Calculate the file size in kilobytes, showing your working.
Show worked answer →

Samples per second times bit depth gives bits per second: 8000 times 8 = 64000 bits per second.

Multiply by duration: 64000 times 10 = 640000 bits.

Convert to bytes: 640000 divided by 8 = 80000 bytes.

Convert to kilobytes: 80000 divided by 1000 = 80 KB.

One mark each for bits per second, total bits, bytes, and KB. The formula is sample rate times bit depth times seconds, all in bits, then divide to the unit asked for.

Related dot points

Sources & how we know this