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 | |
|---|---|---|
| 1AAAABBB → 4A3B | AOne run of 8 identical characters is written as the count 8 then the letter W | |
| 2WWWWWWWW → 8W | BEach run of identical characters is replaced by a count followed by the character | |
| 3A single character that is not repeated still gets a count of 1 | CThe single B is missing its count. It should be written 1B, so the answer is 2A1B3C. | |
| 4Count the runs first, then write each count followed by its character | DAAABCC → 3A1B2C | |
| 5AAAABBB → A4B3 | EThe character is written before the count. The count must come first, so it should be 4A3B. | |
| 6AABCCC → 2AB3C | FXXYYYZZZZ → 2X3Y4Z |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
4A3B — Run-length encoding: each run of identical characters becomes a count then the character, so AAAABBB is written 4A3B. A single character is written 1X.Encode AAAABBB: 4A3BEncode WWWWWWBB: 6W2BEncode ABBB: 1A3BEncode CCCDD: 3C2DEncode AABAAA: 2A1B3A