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 | |
|---|---|---|
| 1width x height x bits per pixel | AThe numbers were added instead of multiplied. The correct sum is 20 x 10 x 24 = 4800 bits. | |
| 2size in bits / 8 | B10 x 10 x 1 = 100 bits | |
| 3A black and white image uses 1 bit per pixel. An image that is 10 pixels wide and 10 pixels high is this many bits. | CBits were multiplied by 8 instead of divided by 8. The correct answer is 8000 / 8 = 1000 bytes. | |
| 4An RGB image uses 24 bits per pixel. An image that is 100 pixels wide and 50 pixels high is this many bits. | DGives the size of an uncompressed bitmap image in bits | |
| 5A 20 x 10 image at 24 bits: 20 + 10 + 24 = 54 bits | EConverts the image size from bits to bytes | |
| 6An image of 8000 bits is 8000 x 8 = 64000 bytes | F100 x 50 x 24 = 120000 bits |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
width x height x bits per pixel — The size of an uncompressed bitmap image in bits. Multiply width by height by the bits used for each pixel, then divide by 8 to get bytes.sizeBits = width * height * bitsPerPixelsizeBits = 16 * 16 * 1
sizeBytes = sizeBits / 8width = 8
height = 8
sizeBits = width * height * 1bitsPerPixel = 24
sizeBits = 100 * 100 * bitsPerPixelsizeBytes = 4096
sizeKB = sizeBytes / 1024