Перейти к содержанию

Labs · 9618 AS 1.2–1.3

Pixels and Sound

Paint bitmaps pixel by pixel, squeeze them with run-length encoding, and sample a sound wave. See every bit and every byte.

10 levelsFree bench

In the exam

Exam questions on what this lab teaches, with the points that gain marks.

9618/11 May/June 2021 · Question 1(a)(ii) and 1(b)6 marks

(a)(ii) An image is scanned with a resolution of 1024 × 512 pixels and a colour depth of 8 bits per pixel. Calculate an estimate for the file size in mebibytes. Show your working. (b) The image is compressed using lossless compression. Identify one method and describe how it reduces the file size.

Points that gain marks

  1. 1024 × 512 = 524 288 pixels; at 8 bits each that is 524 288 bytes.
  2. 524 288 / 1024 / 1024.
  3. Answer: 0.5 mebibytes.
  4. Run-length encoding (RLE).
  5. It replaces a sequence of pixels of the same colour …
  6. … with the colour code and the number of identical pixels.

In this lab: 'How big is the file?' works out a size from width × height × colour depth; the two RLE levels compress small images run by run.

9618/13 May/June 2023 · Question 3(c)(ii)4 marks

The sound in a second video needs to be more precise. Explain the reasons why increasing the sampling rate and the sampling resolution will make the sound more precise.

Points that gain marks

  1. Sampling rate: the sound is sampled more often, so there are smaller gaps in the sound wave.
  2. Sampling rate: the digital wave is closer to the analogue wave.
  3. Sampling resolution: more bits per sample, so a wider range of amplitudes can be stored.
  4. Sampling resolution: each stored amplitude is closer to the analogue amplitude, so the quantisation errors are smaller.

In this lab: 'Sample a sound' and 'Better resolution' show the resolution part: with 3 bits instead of 2, each sample lands closer to the real wave.

IGCSE 0478/12 February/March 2023 · Question 4(b)2 marks

An image has a resolution of 1000 × 1000 and a colour depth of 2 bytes. Calculate the file size of the image in bytes. Show your working.

Points that gain marks

  1. 1000 × 1000 = 1 000 000 pixels.
  2. 1 000 000 × 2 = 2 000 000 bytes.

In this lab: Level 'Exam: two file sizes'.

IGCSE 0478/12 October/November 2024 · Question 2(c)2 marks

A 10 second sound effect is recorded with a sample rate of 22 016 Hz and a sample resolution of 8 bits. Calculate the file size in kibibytes (KiB). Show all your working.

Points that gain marks

  1. 22 016 × 8 bits, divided by 8, = 22 016 bytes each second; × 10 = 220 160 bytes.
  2. 220 160 / 1024 = 215 KiB.

In this lab: Levels 'Sound file size' and 'Exam: two file sizes'.

IGCSE 0478/11 October/November 2025 · Question 2(a)2 marks

An employee compresses image files using lossy compression before sending them. Lossy compression reduces the size of the image files. Give two other reductions that lossy compression makes to the images.

Points that gain marks

  1. The resolution (the number of pixels).
  2. The colour depth (bit depth).
  3. The quality (detail); the metadata.

In this lab: Levels 'More colours, more bits' and 'How big is the file?': fewer pixels or fewer bits per pixel make the file smaller, and the picture loses detail.

IGCSE 0478/13 October/November 2025 · Question 57 marks

Text, images and sound are represented as binary. (a) Complete the table of terms and descriptions: character set; the number of samples taken each second when recording sound; pixel; resolution; the number of bits used to represent a colour. (b) An image file is 1000 bytes: give its size in bits. (c) A sound file is 4096 MiB: give its size in GiB.

Points that gain marks

  1. (a) Character set: all the characters and their unique binary values. Sample rate: the number of samples each second. Pixel: the smallest part of an image. Resolution: the number of pixels in an image (high × wide). Colour depth (bit depth): the number of bits used for a colour.
  2. (b) 8000 bits. (c) 4 GiB.

In this lab: Levels 'Pixels are bits', 'More colours, more bits' (colour depth), 'How big is the file?' (bits, bytes and KiB), 'Sample a sound' (sample rate) and 'Better resolution' (sound: more bits per sample).

The question as printed in the exam paper

More real experiments

All labs →

Войти или создать аккаунт

IGCSE, A-Level & AP