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 | |
|---|---|---|
| 1rgb(0, 0, 0) | AThe first number is one too high. The range is 0 to 255, so 256 is not allowed | |
| 2rgb(255, 0, 0) | BAll three colours are off (0), so the pixel is black | |
| 3Each RGB number can be any whole number from 0 (off) up to 255 (fully on) | Crgb(0, 128, 255) | |
| 4255 is the top value because each colour is stored in one byte (8 bits), which holds 256 values from 0 to 255 | D11111111 = 255 | |
| 5rgb(300, 0, 0) | ERed is fully on (255) while green and blue are off, so the pixel is pure red | |
| 6rgb(256, 255, 255) | F300 is too big. RGB values can only go up to 255, so the red value must be 255 or less |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
rgb(0-255) — Each RGB number runs from 0 (none of that colour) to 255 (full strength). It fits in one byte, which holds 256 values.rgb(255, 0, 0)rgb(0, 0, 0)background: rgb(0, 255, 0);rgb(255, 255, 255)top = 2^8 - 1