Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Giving the answer in the unit asked worksheet is part of the IGCSE Computer Science 0478 — 1.3 Data Storage and Compression journey. Print it as a booklet?
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1bits ÷ 8 ÷ 1024 = KiB | AThe answer is written with the unit that the question asked for | |
| 2Answer: 3 MiB | BThe unit is missing. The answer should be written with the unit, such as 12 KiB. | |
| 3Work out the file size first, then convert it to the unit asked | C2 MiB = 2048 KiB, so 2048 KiB > 1500 KiB | |
| 4To compare two file sizes fairly, convert both to the same unit | Dsize_bits = 1000 * 8 * 16 size_KiB = size_bits / 8 / 1024 | |
| 5The question asks for MiB. Answer: 4096 KiB | EConvert a size in bits to kibibytes by dividing by 8 and then by 1024 | |
| 6Answer: 12 | FThe answer is left in KiB, not in the MiB the question asked for. It should be converted: 4096 / 1024 = 4 MiB. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
unit asked — Finish a storage calculation by converting the result into the unit the question asks for, then write that unit with your answer, for example 2 MiB.sizeKiB ← sizeBytes / 1024sizeMiB ← sizeKiB / 1024
OUTPUT sizeMiBsizeGiB ← sizeMiB / 1024
OUTPUT sizeGiB & " GiB"sizeBytes ← pixels * depth / 8
sizeKiB ← sizeBytes / 1024sizeAKiB ← sizeAMiB * 1024
OUTPUT sizeAKiB > sizeBKiB