1.2

Topic 1

Text, sound and images

  • IGCSE Computer science 0478
  • 2 min read
  • Syllabus 2026, 2027 and 2028

Objectives

  1. 1

    Understand how and why a computer represents text and the use of character sets, including American standard code for information interchange (ASCII) and Unicode

  2. 2

    Understand how and why a computer represents sound, including the effects of the sample rate and sample resolution

  3. 3

    Understand how and why a computer represents an image, including the effects of the resolution and colour depth

Cambridge IGCSE Computer Science 0478 syllabus 2026-2028, 1.2 Text, sound and images (copied for internal use as permitted by Cambridge)

Detailed · Deep study

1Representing text

Text is converted to binary using a character set – an agreed list that gives every character a unique binary code. When you press a key, the code for that character is stored.

ASCIIUnicode
bits per character7 (extended ASCII: 8)more – up to 4 bytes (32 bits)
characters128 (extended: 256)over a million possible
coversEnglish letters, digits, punctuation, control codesalmost every language, symbols and emojis
file sizesmallerlarger for the same text

In ASCII, codes are in order: "A" is 65, "B" is 66, …; "a" is 97. This lets programs sort text and convert between upper and lower case.

2Representing sound

Fig. 1Sampling a wave.

Sound is an analogue wave. To store it, the amplitude of the wave is measured (sampled) at regular intervals, and each measurement is stored as a binary number.

sample rate

The number of samples taken in a second (measured in hertz).

sample resolution

The number of bits used to store each sample.

A higher sample rate captures more detail of how the wave changes; a higher sample resolution allows more amplitude levels, so each sample is closer to the true value. Both make the recording more accurate but the file larger.

3Representing images

Fig. 2Pixels stored as binary.

A bitmap image is made of pixels (picture elements). Each pixel's colour is stored as a binary code.

resolution

The number of pixels in the image (width × height).

colour depth

The number of bits used to represent each colour (each pixel).

Colour depthColours available
1 bit
8 bits
24 bits million

Increasing the resolution or the colour depth increases the quality of the image and also its file size.

4Exam focus

Key words: character set; ASCII; Unicode; sample; sample rate; sample resolution; pixel; resolution; colour depth.

Quick self-check

Answer in your head first, then reveal.

  1. Unicode has a much larger range of characters (1); includes characters from different languages / emojis (1).

  2. The number of bits used per sample (1).

  3. More colours / better quality (1); larger file size (1).

  4. 16 (1).

Finished this subtopic? Track it on your subject page.