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 | |
|---|---|---|
| 10 0 0 0 0 0 0 0 → 8 white | A10 white (a whole row of 10 white pixels) | |
| 20 1 0 1 0 1 0 1 → 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 | BRow A: 8 numbers | Row B: 2 numbers → Row B is better | |
| 3Compare two codes: a shorter code means the picture is stored using less space. | CThe runs were counted one pixel at a time. The whole row is one run, so it should be 8 white. | |
| 4Run-length encoding works best on rows with long runs of one colour. | DA checkerboard row has no long runs because the colour changes every pixel, so run-length encoding saves almost nothing. | |
| 5A checkerboard row 0 1 0 1 0 1 0 1 is the best row for run-length encoding. | EAn all-white row of 8 pixels can be stored as just 2 values, so run-length encoding saves a lot of space. | |
| 6All-white row of 8 pixels: 1 white 1 white 1 white 1 white 1 white 1 white 1 white 1 white | FA checkerboard row changes colour every pixel, so run-length encoding needs 16 numbers to store 8 pixels and saves nothing. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
run-length encoding — Counts each run of one colour instead of listing every pixel. It saves space on long runs, like an all-white row, but saves little when colours change every pixel, like a checkerboard.Row: 00000000
RLE: 8,0Row: 0000001111
RLE: 6,0,4,1Row: 010101
RLE: 1,0,1,1,1,0,1,1,1,0,1,1pixels = 8
codes = 2
codes < pixelspixels = 8
codes = 16
codes > pixels