Study Guide Instructor view

Measuring Storage and File Sizes

Teaching notes for Lesson 1.9, with controls for presenting it.

Keep this page on your own screen. Share only the lesson window. The lesson window holds no teaching notes, so sharing it cannot show them.

Presenting

  1. Open the lesson in its own window and share that window, not this one.
  2. Use Next and Previous here, or the lesson’s own, to move through the lesson. Next reveals one thing at a time: the next idea, or the answer to the question on screen, then the next step. Previous takes the last reveal back. The line below says what is on screen and what Next will show.
  3. Reveal hints and answers when the class is ready, and reset a demonstration before using it again.

The controls need JavaScript and a browser that supports BroadcastChannel. Without them, open the lesson in presentation mode and use its own controls.

The two windows talk to each other only inside this browser, on this device. Nothing is sent to a server, and no account is needed. A second device (a phone or another tablet) cannot follow the lesson window yet.

Lesson plan

Level
Intermediate
Time
About 60 minutes; the steps below add up to 60

Learners ask why data needs several units, work out why a computer’s unit is 1024 and not 1000, and meet the binary prefixes kibi, mebi and gibi. They then derive the image-size rule (width × height × colour depth) from a small picture and the sound rule (sample rate × sample resolution × seconds) from a recorder, convert to bytes and to larger units, and apply sizes to decide how many photos or clips fit on a card. The common errors to watch for are leaving an answer in bits, using 1000 instead of 1024, and forgetting to convert minutes to seconds.

Objectives

  • Name the units of data storage from the bit to the exbibyte and say how many of one unit make the next
  • Convert between units of storage using 1024, in both directions
  • Explain the difference between a kibibyte and a kilobyte
  • Calculate the file size of an image from its resolution and colour depth
  • Calculate the file size of a sound from its sample rate, sample resolution and length, and give the answer in the unit asked for

Before the lesson

  • A calculator for each pair is acceptable for the larger products, but ask learners to explain each step in words; the numbers in the lesson divide cleanly.
  • Powers of 2 on the board up to 2^10 = 1024.
  • A card with the unit ladder byte, KiB, MiB, GiB, TiB, PiB, EiB and the arrows ‘÷ 1024 to go up’ and ‘× 1024 to go down’.
  • Revisit the earlier rules if learners have not seen them recently: bits per pixel for images, and samples per second for sound.

Steps

  1. Introduction Opening

    On screen: the lesson’s title, module and number; Next adds its objectives and key terms, as the lesson page lists them; Next again begins the first step.

    Objectives on screen

    • Name the units of data storage from the bit to the exbibyte and say how many of one unit make the next
    • Convert between units of storage using 1024, in both directions
    • Explain the difference between a kibibyte and a kilobyte
    • Calculate the file size of an image from its resolution and colour depth
    • Calculate the file size of a sound from its sample rate, sample resolution and length, and give the answer in the unit asked for

    Purpose: Learners ask why data needs several units, work out why a computer’s unit is 1024 and not 1000, and meet the binary prefixes kibi, mebi and gibi. They then derive the image-size rule (width × height × colour depth) from a small picture and the sound rule (sample rate × sample resolution × seconds) from a recorder, convert to bytes and to larger units, and apply sizes to decide how many photos or clips fit on a card. The common errors to watch for are leaving an answer in bits, using 1000 instead of 1024, and forgetting to convert minutes to seconds.

  2. 1. Why one unit is not enough Think 5 min

    Purpose: Learners see the need for several units by comparing lengths, before the units are introduced.

    Ask

    • Why is data measured in several units, as lengths are measured in millimetres, metres and kilometres?
    • How many of one unit do you expect to make the next?

    Responses to expect

    • Different sizes need different units; a film would be an awkward number of bits
    • For lengths 10, 100 or 1000; for data the lesson will show 1024

    Misconceptions to challenge

    • A learner may believe: “A byte is the same as a bit.” Respond: A bit is one 0 or 1; a byte is eight bits.
    • A learner may believe: “Each unit of data is 1000 of the last.” Respond: That is the habit from metres and kilometres. Ask them to keep it as a prediction and test it in the next step.

    On the board or with the pen

    • Draw bit, nibble and byte as boxes of 1, 4 and 8, and write 8 bits in a byte.

    Checking understanding: Ask for a show of fingers: how many bits in a byte, and nibbles in a byte?

    English as an additional language

    • Check storage, unit and nibble; show real sizes (a text, a photo, a film) on a ladder.

    Discussion pause: Thirty seconds of silent thinking before the pairs discuss.

    In the lesson window

    • Think it through: Lengths are measured in millimetres, metres and kilometres. Why do you think data is measured in several units too, and how many of one unit do you expect to make the next?
  3. 2. Why 1024? Discover 11 min

    Purpose: Learners double 2 until just above 1000 and discover 1024, then use it to convert units.

    Ask

    • Keep doubling from 2 until you reach a number just above 1000. What is it?
    • How many MiB are there in 6 GiB?

    Responses to expect

    • 1024 = 2^10
    • 6144 MiB: 6 × 1024

    Misconceptions to challenge

    • A learner may believe: “There are 1000 MiB in a GiB (mib-in-a-gib option A).” Respond: Storage units in this course use 1024. How many MiB make one GiB?
    • A learner may believe: “6 ÷ 1024 MiB, because MiB is a bigger unit (option C).” Respond: MiB is smaller than GiB, so there are more of them. Should the number grow or shrink?
    • A learner may believe: “Going to a smaller unit means dividing.” Respond: Smaller unit, more of them: multiply. Use the ladder card to check the direction.

    On the board or with the pen

    • Draw the unit ladder with an arrow up (÷ 1024) and an arrow down (× 1024), and work 3 MiB to KiB on it.

    What learners should notice

    • Each unit is 1024 of the one below it.

    Checking understanding: The convert-units table; the mib-in-a-gib check.

    Depending on the answers

    • If learners get the direction wrong: ask first: will the answer be a bigger or smaller number than the starting number?
    • If learners are fast: ask for EiB to TiB (two steps down).

    Support

    • Provide the unit ladder card.

    English as an additional language

    • Teach kibi as ‘kilo’ plus ‘binary’; practise saying kibibyte aloud.

    In the lesson window

    • Think it through: Computers work in powers of 2: 2, 4, 8, 16, 32 and so on. Keep doubling from 2 until you reach a number just above 1000. Which power of 2 is it, and what number is it?
    • Check your understanding: How many MiB are there in 6 GiB?
  4. 3. Kibi and kilo Predict 8 min

    Purpose: Learners explain why a drive sold as 1 TB shows as about 931 GiB, and distinguish decimal prefixes from binary ones.

    Ask

    • Has the shop cheated, if a 1 TB drive shows as 931 GiB on the computer?
    • A drive is sold as 500 GB. What will a computer that reports in GiB show?

    Responses to expect

    • No: tera is based on 1000 and tebi on 1024, so the units differ
    • Less than 500 GiB, because a GiB is bigger than a GB

    Misconceptions to challenge

    • A learner may believe: “Exactly 500 GiB, because GB and GiB are the same (drive-in-gib option A).” Respond: They are different units. Ask which uses 1000 and which uses 1024.
    • A learner may believe: “More than 500 GiB, because a GiB is smaller than a GB (option B).” Respond: Compare 1 073 741 824 bytes with 1 000 000 000 bytes: which is bigger?
    • A learner may believe: “Kilo always means 1024 in computing.” Respond: That is why KiB, MiB and GiB were agreed. In IGCSE calculations use 1024 and never 1000.

    On the board or with the pen

    • Write 1 TB = 1 000 000 000 000 bytes and 1 GiB = 1 073 741 824 bytes, then divide, to give about 931.

    Checking understanding: The drive-in-gib check.

    Depending on the answers

    • If learners say the shop cheated: ask how many bytes the drive holds and how many bytes one GiB is.

    Stretch

    • Why does the gap between kilo and kibi get bigger with each prefix?

    Discussion pause: Silent thinking before any answer to ‘has the shop cheated?’.

    In the lesson window

    • Think it through: Has the shop cheated? Think about what the prefix “tera” means in the shop’s label, and what “tebi” means to the computer.
    • Check your understanding: A drive is sold as 500 GB, where GB uses the decimal prefix (1 GB = 1 000 000 000 bytes). A computer reports its size in GiB (1 GiB = 1 073 741 824 bytes). What will the computer show?
  5. 4. The size of an image file Predict 12 min

    Purpose: Learners work out the size of a small picture, then use the general rule with a worked example that gives the reason for each step.

    Ask

    • An image is 8 × 6 pixels with a colour depth of 2 bits. How many bits and how many bytes?
    • Tom writes 64 × 64 × 8 = 32 768 and says the size is 32 768 KiB. What is wrong?

    Responses to expect

    • 48 × 2 = 96 bits = 12 bytes
    • 32 768 is a number of bits; divide by 8 for bytes, then by 1024 for KiB: 4 KiB

    Misconceptions to challenge

    • A learner may believe: “A size is always given in KiB, so no conversion is needed (toms-image option B).” Respond: The multiplication is right, but check the unit. What does width × height × colour depth give?
    • A learner may believe: “Divide by 1000, not 1024, to change into KiB (option C).” Respond: He has not divided at all yet. And in a KiB calculation, which number is used?
    • A learner may believe: “Bits and bytes are the same.” Respond: There are 8 bits in a byte: divide the bits by 8.

    On the board or with the pen

    • Write the rule in bits, then write the worked example in five lines with the unit at the end of each.

    What learners should notice

    • 24 bits is 3 bytes, so each pixel takes 3 bytes: working in bytes from the start avoids a big multiplication.

    Checking understanding: The toms-image check and the image-sizes table; ask which unit each answer is in.

    Depending on the answers

    • If learners multiply correctly but leave the answer in bits: ask them to circle the unit the question asks for and work towards it.

    Support

    • Give learners a flow card: pixels × depth = bits; ÷ 8 = bytes; ÷ 1024 = KiB.

    In the lesson window

    • Think it through: An image is 8 pixels wide and 6 pixels tall, with a colour depth of 2 bits. How many bits does it take, and how many bytes?
    • Apply it: Tom calculates the size of a 64 × 64 image with a colour depth of 8 bits. He writes: “64 × 64 × 8 = 32 768, so the size is 32 768 KiB.” What is wrong?
  6. 5. The size of a sound file Predict 11 min

    Purpose: Learners derive the sound-size rule from a recorder, then work examples with seconds and units.

    Ask

    • A recorder takes 1000 samples a second, each of 8 bits. How many bits in 1 second and in 10 seconds?
    • A voice recorder uses 4096 Hz and 16 bits and records for 2 minutes. What is the size in KiB?

    Responses to expect

    • 8000 bits and 80 000 bits; size = sample rate × sample resolution × seconds
    • 960 KiB: 2 minutes is 120 seconds; 4096 × 16 × 120 = 7 864 320 bits; ÷ 8 ÷ 1024

    Misconceptions to challenge

    • A learner may believe: “The answer is 16 KiB because the length 2 was used as it is (two-minute-recording option B).” Respond: The rule needs seconds. How many seconds are in 2 minutes?
    • A learner may believe: “7 864 320 KiB (the bits left unconverted) (option A).” Respond: That is the number of bits. After finding the bits, what do you divide by next?
    • A learner may believe: “983 040 KiB, which is the answer in bytes (option D).” Respond: That figure is in bytes. KiB is a bigger unit, so the number should be smaller.
    • A learner may believe: “The sound formula is the same as the image formula.” Respond: An image has pixels; a sound has samples. Ask which three settings a sound has.

    On the board or with the pen

    • Write the rule and the two-minute example in full, with the unit of each line in the margin.

    Checking understanding: The two-minute-recording question has four options that each stop at a different step; ask learners which step each option stopped at.

    Depending on the answers

    • If learners do not convert the minutes: circle the length and ask what unit the rule needs.
    • If learners are secure: ask for the size in MiB.

    Support

    • Give a flow card for sound: rate × resolution × seconds = bits; ÷ 8; ÷ 1024.

    Stretch

    • A stereo recording has two channels. How does that change the size?

    In the lesson window

    • Think it through: A fictional recorder takes 1000 samples every second, and each sample is 8 bits. How many bits does it store in 1 second, and in 10 seconds? Which rule do you think follows for any recording?
    • Apply it: A fictional voice recorder uses a sample rate of 4096 Hz and a sample resolution of 16 bits. It records for 2 minutes. What is the file size, in KiB?
  7. 6. Use a size to decide Apply 9 min

    Purpose: Apply sizes to a decision: how many photos fit on a card, and how many clips fit on a 2 GiB card.

    Ask

    • A card holds 90 MiB and a photo is 2.25 MiB. How many photos fit?
    • Clips of exactly 1 MiB are stored on a 2 GiB card. How many fit?

    Responses to expect

    • 40, by dividing the card size by the photo size
    • 2048, after changing 2 GiB into MiB

    Misconceptions to challenge

    • A learner may believe: “90 photos, because the card holds 90 MiB (photos-on-a-card option A).” Respond: That treats each photo as 1 MiB. What is the size of one photo?
    • A learner may believe: “202 photos, found by multiplying (option B).” Respond: Multiplying would give more photos than the card has room for. Should there be more photos than MiB, or fewer?
    • A learner may believe: “2 clips, because 2 GiB ÷ 1 MiB = 2 (clips-in-two-gib option C).” Respond: The two numbers are in different units. Change the GiB into MiB first.
    • A learner may believe: “2000 clips, with 1000 MiB in a GiB (option A).” Respond: Storage calculations here use 1024, not 1000.

    Checking understanding: Ask learners to say the units of each number before dividing.

    Depending on the answers

    • If learners multiply instead of dividing: ask a small example: a 2 MiB photo and a 10 MiB card; how many fit?

    Support

    • Provide a sentence frame: ‘Card size ÷ item size = how many’, with the units written next to each number.

    In the lesson window

    • Apply it: A fictional memory card holds 90 MiB. Each photo is 1024 × 768 pixels with a colour depth of 24 bits, which the worked example earlier found to be 2.25 MiB. How many photos fit on the card?
    • Apply it: A fictional music app stores every clip in exactly 1 MiB. How many clips fit on a card of 2 GiB?
  8. 7. Bring it together Consolidate 4 min

    Purpose: Learners explain how to find the size of a 512 × 512 image of 24 bits, and choose the correct sound-file formula, before the summary.

    Ask

    • Explain how to find the size of a 512 × 512 image with a colour depth of 24 bits in KiB.
    • Which calculation gives the size of a sound file in bits?

    Responses to expect

    • 262 144 pixels × 3 bytes = 786 432 bytes; ÷ 1024 = 768 KiB
    • sample rate × sample resolution × length in seconds

    Misconceptions to challenge

    • A learner may believe: “Sample rate + sample resolution + length (sound-formula option B).” Respond: The three numbers are multiplied, not added: each of the samples needs its own bits.
    • A learner may believe: “width × height × colour depth is the sound formula (option C).” Respond: That is the rule for an image; a sound has no pixels.

    Checking understanding: Listen for the unit being stated at the end of each step of the explanation.

    Depending on the answers

    • If learners cannot do the image size: start the next lesson with a 32 × 32 image at 8 bits.

    In the lesson window

    • Think it through: Without looking back, explain to a friend how to find the size of an image of 512 × 512 pixels with a colour depth of 24 bits, and give the answer in KiB.
    • Check your understanding: Which calculation gives the size of a sound file in bits?
  9. Lesson recap Closing

    On screen: the lesson’s objectives again; Next adds the closing question, which asks the class to explain each one in their own words without looking back. It says nothing about what anyone has learnt: use the answers to decide what to revisit.

    Points to listen for

    • A bit is one 0 or 1; a nibble is 4 bits; a byte is 8 bits.
    • Storage units go up in steps of 1024: byte, KiB, MiB, GiB, TiB, PiB, EiB. Divide by 1024 to go up a unit, multiply to go down.
    • Kilo, mega, giga and tera are decimal (1000); kibi, mebi, gibi and tebi are binary (1024). In calculations here, use 1024.
    • Image size in bits = width × height × colour depth; sound size in bits = sample rate × sample resolution × seconds. Divide by 8 for bytes and by 1024 for each larger unit, and give the unit asked for.

Consolidation

  • A bit is one 0 or 1; a nibble is 4 bits; a byte is 8 bits.
  • Storage units go up in steps of 1024: byte, KiB, MiB, GiB, TiB, PiB, EiB. Divide by 1024 to go up a unit, multiply to go down.
  • Kilo, mega, giga and tera are decimal (1000); kibi, mebi, gibi and tebi are binary (1024). In calculations here, use 1024.
  • Image size in bits = width × height × colour depth; sound size in bits = sample rate × sample resolution × seconds. Divide by 8 for bytes and by 1024 for each larger unit, and give the unit asked for.