Converting to a smaller unit

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Converting to a smaller unit

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. How do you convert 3 GiB into MiB?
A 3 x 1024 = 3072 MiB
B 3 / 1024 = 0.0029 MiB
2. Which operation converts MiB to KiB?
A Multiply by 1024
B Divide by 1024
3. Which answer is correct for 5 KiB converted to bytes?
A 5 / 1024 bytes
B 5120 bytes
4. A student converts 2 MiB to KiB and gets 2048. Is the answer sensible?
A No, the answer should be smaller than 2
B Yes, it is bigger than 2, as expected for a smaller unit
5. A student converts 4 GiB to MiB and gets 0.0039. What should you tell them?
A Wrong: the answer should be bigger than 4, so multiply by 1024
B Correct: the number gets smaller when the unit gets smaller

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1gib * 1024 AConverts a size in GiB into MiB by multiplying by 1024
2kib * 1024 BMultiplied by 1000 instead of 1024. The correct answer is 5 * 1024 = 5120 bytes.
3To change 3 MiB into KiB (a smaller unit), multiply by 1024 C3 * 1024 = 3072
4After converting to a smaller unit the answer should be a bigger number than the start, so check this D2 GiB = 2048 MiB, and 2048 > 2
54 GiB = 4 / 1024 = 0.0039 MiB EConverts a size in KiB into bytes by multiplying by 1024
65 KiB = 5 * 1000 = 5000 bytes FDivided by 1024 instead of multiplying. Going to a smaller unit needs multiplying, so the answer should be 4 * 1024 = 4096 MiB.

Definitions

size * 1024

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
gib = 2 mib = gib _ 1024
2.
mib = 5 kib = mib * ____
3.
kib = 4 bytes = ___ * 1024
4.
gib = 2 mib = gib * 1024 print(mib _ gib)
5.
mib = 3 kib = mib * 1024 print(___)

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A gib <- 2
B mib <- gib * 1024
C OUTPUT mib
D kib <- mib / 1024
E OUTPUT kib
Question 2
A mib <- 5
B OUTPUT mib
C kib <- mib * 1000
D OUTPUT kib
Question 3
A mib <- 3 / 1024
B OUTPUT mib
C // 3 GiB converted to MiB
Question 4
A kib <- 6
B bytes <- kib * 8
C OUTPUT bytes
Question 5
A gib <- 2
B mib <- gib * 1024
C kib <- gib * 1024
D OUTPUT kib

Answer Key

Converting to a smaller unit
Section A: Quick Questions
Q1
A — 3 x 1024 = 3072 MiB
Q2
A — Multiply by 1024
Q3
B — 5120 bytes
Q4
B — Yes, it is bigger than 2, as expected for a smaller unit
Q5
A — Wrong: the answer should be bigger than 4, so multiply by 1024
Section B: Match the Pairs
Q1
gib * 1024 → Converts a size in GiB into MiB by multiplying by 1024
Q2
kib * 1024 → Converts a size in KiB into bytes by multiplying by 1024
Q3
To change 3 MiB into KiB (a smaller unit), multiply by 1024 → 3 * 1024 = 3072
Q4
After converting to a smaller unit the answer should be a bigger number than the start, so check this → 2 GiB = 2048 MiB, and 2048 > 2
Q5
4 GiB = 4 / 1024 = 0.0039 MiB → Divided by 1024 instead of multiplying. Going to a smaller unit needs multiplying, so the answer should be 4 * 1024 = 4096 MiB.
Q6
5 KiB = 5 * 1000 = 5000 bytes → Multiplied by 1000 instead of 1024. The correct answer is 5 * 1024 = 5120 bytes.
Section C: Definitions
Q1
size * 1024 — To convert to the next smaller unit (GiB to MiB, MiB to KiB, KiB to bytes), multiply by 1024. The answer should be a bigger number than the one you started with.
Section D: Fill in the Blanks
Q1
gib = 2 mib = gib * 1024
Q2
mib = 5 kib = mib * 1024
Q3
kib = 4 bytes = kib * 1024
Q4
gib = 2 mib = gib * 1024 print(mib > gib)
Q5
mib = 3 kib = mib * 1024 print(kib)
Section E: Spot the Error
Q1
D — Going from MiB to the smaller unit KiB means multiplying by 1024, not dividing. It should be kib <- mib * 1024, so the answer is a bigger number.
Q2
C — Storage units step by 1024, not 1000. MiB to KiB must be kib <- mib * 1024.
Q3
A — Converting 3 GiB to the smaller unit MiB needs multiplication: mib <- 3 * 1024. Dividing would give a tiny number instead of a bigger one.
Q4
B — 8 is the number of bits in a byte, not the step between KiB and bytes. One KiB is 1024 bytes, so it should be bytes <- kib * 1024.
Q5
C — This skips a step. GiB must first become MiB, then MiB becomes KiB. The line should be kib <- mib * 1024.