Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
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 | |
|---|---|---|
| 1bytes / 1024 | A2 ^ 8 = 256, so depth = 8 | |
| 2bytes / 1024 / 1024 | BIt multiplies by 1024 instead of dividing. A KiB is bigger than a byte, so the number must get smaller. Use bytes / 1024. | |
| 3A 1024 x 512 image with a colour depth of 16 bits, with the size given in MiB: bits to bytes, then divide by 1024 twice | CConverts an image size in bytes to MiB | |
| 4An image that uses 256 colours needs a colour depth of 8 bits per pixel, because 2 to the power of 8 is 256 | Dw * h * depth is in bits, but the code never divides by 8 to get bytes. It should be (w * h * depth) / 8 / 1024. | |
| 5size_KiB = bytes * 1024 | EConverts an image size in bytes to KiB | |
| 6size_KiB = (w * h * depth) / 1024 | F1024 * 512 * 16 / 8 / 1024 / 1024 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
bytes / 1024 / 1024 — 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.kib = bytes / 1024mib = bytes / 1024 / 1024bits = 1024 * 1024 * 24
bytes = bits / 8
mib = bytes / 1024 / 1024colours = 256
depth = 8
bits = 1920 * 1080 * depthkib = bytes / 1024
mib = kib / 1024