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 →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Astronomy & Space Science
  • Earth & Environmental 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. Quizzes
  2. /An image of 60 by 30 pixels must be able to show 1000 different colours. Every pixel uses the same number of bits. What is the smallest possible size of the image in bits?
Computer ScienceHardHigh School (9–10)Computer Systems › Data RepresentationIGCSE
StemPy LabCreated by StemPy Lab
Read about Data Representation first

A computer stores everything in binary, as patterns of 0s and 1s. A denary number can be converted to binary, or to hexadecimal, which is a short way to write binary. Binary numbers can be added, shifted left or right, and written as negative numbers with two's complement. Text is stored with a character set such as ASCII or Unicode. A sound is sampled many times each second, and an image is stored as pixels, each with a colour code. File size depends on the resolution and the colour depth, and compression makes files smaller.

Lessons, worked problems and more questions on Data Representation →

An image of 60 by 30 pixels must be able to show 1000 different colours. Every pixel uses the same number of bits. What is the smallest possible size of the image in bits?

9 bits give only 512 colours, so the colour depth must be 10 bits (210=10242^{10} = 1024210=1024). The size is 60×30×10=1800060 \times 30 \times 10 = 1800060×30×10=18000 bits. 180000018000001800000 multiplies by the number of colours. 162001620016200 uses 9 bits, which gives too few colours. 144001440014400 uses 8 bits, which gives only 256 colours.
Log in to save
← All Quizzes
← A voice memo lasts one minute. It is sampled 5500 times a second with a resolution of 16 bits. What is its size in bytes?A message contains English letters, the Greek letter omega and a smiling emoji. Which statement is correct? →
More onComputer Systems › Data Representation

Discussion (0)

Log in to join the discussion.

Loading…

More questions on this topic

  1. A network sends 4 MiB of data every second. A 10 MiB video is compressed to 2 MiB before it is…Hard
  2. A photo of 512 by 384 pixels is compressed by reducing its colour depth to 6 bits. What is the new…Hard
  3. Each string below is 8 characters long and takes one byte per character. Run-length encoding…Hard
  4. A podcast is sampled 16384 times a second at 16 bits and lasts 3 minutes. What is its size in MiB?Hard
  5. A music player has 1.75 GiB of free space. Each song is 9 MiB. How many whole songs fit?Hard
All questions on this topic →

Problems on this topic

  1. A student must compress two files. File A is a text file holding the 7 characters ABCDEFG, one byte…Hard
  2. A line of an icon is stored with run-length encoding as these pairs of (count, colour code): (5…Medium
  3. One row of a scanned page is 13 pixels: 6 white, then 3 black, then 4 white…Easy
  4. An image is 800 pixels wide and 600 pixels high…Hard
All problems on this topic →