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 | |
|---|---|---|
| 1key = QWERTYUIOPASDFGHJKLZXCVBNM | AThe table was used forwards. M is what Z encrypts to, not what Z decrypts to. | |
| 2DOG -> RGU | BThe key repeats N and leaves out M. Two plain letters would share one cipher letter, so decrypting would be ambiguous. | |
| 3To decrypt, use the key table in reverse: find the cipher letter, then read off the plain letter it replaced | CEncrypting DOG with the key table: D becomes R, O becomes G and G becomes U | |
| 4Each letter swaps for a different letter with no fixed shift, so it is not a Caesar shift | DA -> Q, B -> W, C -> E | |
| 5key = QWERTYUIOPASDFGHJKLZXCVBNN | EA scrambled alphabet key: A becomes Q, B becomes W, C becomes E, and so on for all 26 letters | |
| 6Decrypt Z: Z -> M | FQ -> A, E -> C, Z -> T |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
substitution cipher — A cipher that swaps each letter for a different letter or symbol using a key table, like a scrambled alphabet. It is not a simple shift, and the table is used in reverse to decrypt.alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
key = "QWERTYUIOPASDFGHJKLZXCVBNM"alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
key = "QWERTYUIOPASDFGHJKLZXCVBNM"
cipher = key[alphabet.index("A")]alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
key = "QWERTYUIOPASDFGHJKLZXCVBNM"
plain = alphabet[key.index("Q")]coded = ""
for letter in message:
coded += key[alphabet.index(letter)]table = {"A": "Q", "B": "W", "C": "E"}
reverse = {v: k for k, v in table.items()}
print(reverse["W"])