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 | |
|---|---|---|
| 14A3B | ADecodes to AAAABBB: write A four times, then B three times | |
| 212X1Y | B10 was read as two separate digits. It is one two-digit count, so 10Z decodes to ZZZZZZZZZZ (ten Zs). | |
| 3Decoding reads the count first, then the character that gets repeated that many times | CDecodes to XXXXXXXXXXXXY: 12 copies of X then one Y, which is 13 characters long | |
| 4To check a decode, add up all the counts: the total must equal the length of the decoded text | DThe counts were swapped onto the wrong characters. 3C means three Cs and 2D means two Ds, so it should be CCCDD. | |
| 53C2D decoded as CCDDD | E3C2D = CCCDD | |
| 610Z decoded as 1Z and then 0 (Z0) | F2A5B -> 2 + 5 = 7 characters (AABBBBB) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
3C2D = CCCDD — Decoding run-length data: read each count then its character, and write that character that many times. 3C means CCC and 2D means DD, so 3C2D expands back to CCCDD.3C2D decodes to CCCDDIn 4A1B, the count for A is 43C2D: 3 + 2 = 5 characters when decoded12X decodes to X repeated 12 timesIn 5Q, the count is 5 and the character is Q