HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Notes
  2. /Text, Sound and Images: Quick Revision
Computer Science

Text, Sound and Images: Quick Revision

A brief note on how text, sound and images are stored in binary: ASCII and Unicode, sample rate and resolution, pixels, resolution and colour depth, the three size rules, the usual slips, practice, a program and questions to check yourself.

StemPy LabWritten by StemPy Lab
Log in to save

A brief note on Text, Sound and Images. Read it before a test. Try each question at the end before you open its answer.

Text

  • A character set gives every character a binary code.
  • ASCII uses 7 bits, so it has 128 codes. The letters are in order, and a small letter is 32 more than its capital.
  • Unicode has far more characters, including many languages and emojis, so it needs more bits per character.
  • Bits === characters ×\times× bits per character.

Sound

  • The wave is sampled: its amplitude is measured at regular moments and each value is stored in binary.
  • Sample rate: the number of samples taken in a second.
  • Sample resolution: the number of bits per sample. bbb bits give 2b2^b2b levels.
  • Bits === sample rate ×\times× resolution ×\times× seconds.

Images

  • An image is a grid of pixels, and each pixel's colour is stored in binary.
  • Resolution: the number of pixels.
  • Colour depth: the number of bits per pixel. ddd bits give 2d2^d2d colours.
  • Bits === width ×\times× height ×\times× colour depth.

One rule for all three

Raise the sample rate, the sample resolution, the image resolution or the colour depth, and the quality goes up. So does the file size.

A worked example

A clip is sampled 3000 times a second at 8 bits for 7 seconds.

  1. Bits. 3000×8×7=1680003000 \times 8 \times 7 = 1680003000×8×7=168000 bits.
  2. Bytes. 168000÷8=21000168000 \div 8 = 21000168000÷8=21000 bytes.
  3. Check. Each sample is one byte, and there are 3000×7=210003000 \times 7 = 210003000×7=21000 samples.

Practice with new numbers

A program to try

The program works out the size of a text, a sound and an image, in bits and in bytes.

Read it first. Then run it. Which of the three is the largest?

1. Change the colour depth to 24. How many times larger is the image now?

Mistakes to avoid

  • Mixing up rate and resolution. Rate is how often; resolution is how many bits.
  • Colours from bits. 2d2^d2d, not 2d2d2d.
  • Bits and bytes. Divide by 8 for bytes.
  • Spaces count as characters.

Check yourself

  1. In ASCII the letter P is 80. What is the code of the small letter p?
  1. How many levels can a sample take with a resolution of 7 bits?
  1. An image is 50 by 20 pixels with a colour depth of 8 bits. How many bytes does it need?
  1. What happens to the size of a recording when its length is tripled?
  1. Give one reason why an image with a higher colour depth looks better.

Sources

  • Cambridge International, IGCSE Computer Science 0478 syllabus for 2026 to 2028, section 1.2 (text, sound and images).
← All Notes
← Number Systems: Quick RevisionStorage Units and Compression: Quick Revision →
More onComputer Science › Data Representation

Discussion (0)

Log in to join the discussion.

Loading…

On this page

  1. Text
  2. Sound
  3. Images
  4. One rule for all three
  5. A worked example
  6. Practice with new numbers
  7. A program to try
  8. Mistakes to avoid
  9. Check yourself
  10. Sources

Goes with the lesson

  1. Images: resolution and colour depthText, Sound and Images in Binary

More notes on this topic

  1. Storage Units and Compression: Quick Revision
  2. Number Systems: Quick Revision
  3. Logic Circuits and Truth Tables: Quick Revision
  4. NAND, NOR and XOR Gates: Quick Revision
  5. NOT, AND and OR Gates: Quick Revision
All notes on this topic →