Image file size in the unit asked
After finding an image size in bytes, divide by 1024 once for KiB, twice for MiB and three times for GiB, to give the answer in the unit the question asks for.
Understanding Image file size in the unit asked in IGCSE Computer Science Paper 1
What it does: Pixels times colour depth gives bits. Dividing by 8 gives bytes, and dividing by 1024 twice gives 1 MiB. Divide by 1024 once for KiB: 4096 / 1024 = 4 KiB. The 4096 is the size in bytes, so it must be converted. Going to a larger unit means dividing by 1024, so the number gets smaller. Multiplying makes it wrongly bigger.
Common mistakes: The number of pixels is width multiplied by height, so line 1 should be pixels = 800 * 600. Adding them gives the wrong pixel count. The image size in bits is pixels multiplied by colour depth, so line 2 should be bits = pixels * 16. Dividing makes the size far too small.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 69–84) and word search (Modules 59–84).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
bytes / 1024 / 1024Fill in the Blanks
Spot the Error
Student with a class code? Join your class →