- Foundation
- About 12 min
- 5 practice questions
What coding and decoding means
Understand how a word is turned into a code by a hidden rule, and learn the method of comparing the word with its code letter by letter.
If something looks wrong, please tell us.
In coding-decoding, a word is changed into a code according to a secret rule. You are shown one or two examples and asked to apply the same rule to a new word, or to work backward from a code to the original. The rule is never hard to find if you compare carefully, letter by letter.
Terms
- Coding: turning a word into its code using the rule.
- Decoding: turning a code back into the word.
- Rule: what is done to each letter, for example 'move forward by 1' or 'replace with the opposite letter'.
How to find the rule
How to find the rule
- Word above its code CAT above DBU.
- Write the positions A = 1 ... Z = 26.
- Find each change C to D is +1, A to B is +1, T to U is +1.
- Same change everywhere? That is the rule; if not, look for a pattern in the changes.
- Write the word and its code one above the other.
- Write the alphabet position of each letter (A = 1 ... Z = 26).
- Find the change from each letter to its code letter.
- If the change is the same for every letter, that is the rule. If not, look for a pattern in the changes.
Worked examples
Example 1. If CAT is coded as DBU, how is DOG coded? Compare: C (3) to D (4) is +1, A (1) to B (2) is +1, T (20) to U (21) is +1. So every letter moves forward by 1. DOG becomes E, P, H: EPH.
Example 2. If MANGO is coded as OCPIQ, how is APPLE coded? M (13) to O (15) is +2, A to C is +2, N to P is +2, G to I is +2, O to Q is +2. The rule is +2. APPLE becomes A+2 = C, P+2 = R, P+2 = R, L+2 = N, E+2 = G: CRRNG.
Example 3 (decoding). If a code word for a certain word is KPF and the rule is 'each letter moved forward by 1', the original is found by moving each letter back by 1: K to J, P to O, F to E. The original is JOE.
Coding and decoding
-
Coding
- Word to code, using the rule
- Rule +1: CAT becomes DBU
-
Decoding
- Code back to the word
- Apply the opposite operation
- Move back 1: KPF becomes JOE
Write alphabet positions under the word and its code. The same change on every letter is the rule.
Key takeaways
- Compare each letter with its code letter and use positions to see the shift.
- Test the rule on every letter, not only the first.
- To decode, apply the opposite operation.
Check your understanding
-
1. If RAT is coded as SBU, how is COW coded?
- CPX
- DOX
- DPX
- EPY
Show answer
Answer: C. R to S, A to B, T to U: every letter moves forward by 1. So C to D, O to P, W to X, giving DPX.
-
2. If KITE is coded as MKVG, how is FISH coded?
- GJTI
- HKUJ
- HJUK
- HKTJ
Show answer
Answer: B. K (11) to M (13) is +2, and I to K, T to V, E to G are also +2. So F to H, I to K, S to U, H to J, giving HKUJ.
-
3. If HOT is coded as GNS, how is LAMP coded?
- KALO
- KZMO
- KZLO
- MBNQ
Show answer
Answer: C. H to G, O to N, T to S: every letter moves back by 1. So L to K, A to Z (wrapping round), M to L, P to O, giving KZLO.
-
4. A word is coded by moving each letter forward by 1, and its code is EPH. What is the word?
- COG
- DOH
- FQI
- DOG
Show answer
Answer: D. To decode, do the opposite: move each letter back by 1. E to D, P to O, H to G, so the word is DOG.
-
5. If LION is coded as NKQP, which word is coded as DGCT?
- BEAR
- BEAT
- DEAR
- FIEV
Show answer
Answer: A. L to N, I to K, O to Q, N to P: the rule is +2. To decode DGCT, move each letter back by 2: D to B, G to E, C to A, T to R, giving BEAR.
Sign in to keep track of the lessons you finish.