Converting to a larger unit
To convert to the next larger unit (bytes to KiB, KiB to MiB, MiB to GiB), divide the size by 1024. The answer may not be a whole number.
Understanding Converting to a larger unit in IGCSE Computer Science Paper 1
What it does: Moving up one unit on the ladder always means dividing by 1024, and KiB to MiB is one step up. Going from bytes to the larger unit KiB, divide by 1024. 2048 ÷ 1024 = 2. KiB to MiB is the next unit up, so 3072 ÷ 1024 = 3 MiB. 1536 ÷ 1024 = 1.5, which is not a whole number but is still a correct answer. The fix is mib = kib / 1024, because each unit is 1024 times the one below it.
Common mistakes: This line should print the converted size, kib (3.0 KiB). Printing bytes just shows the original number of bytes, so the conversion is never shown. It should be print(kib). Going to a larger unit makes the number smaller, so you divide by 1024. Multiplying gives a far bigger number. It should be mib = kib / 1024.
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 59–68) 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
divide by 1024Fill in the Blanks
Spot the Error
Student with a class code? Join your class →