• 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

  1. Word above its code CAT above DBU.
  2. Write the positions A = 1 ... Z = 26.
  3. Find each change C to D is +1, A to B is +1, T to U is +1.
  4. Same change everywhere? That is the rule; if not, look for a pattern in the changes.
  1. Write the word and its code one above the other.
  2. Write the alphabet position of each letter (A = 1 ... Z = 26).
  3. Find the change from each letter to its code letter.
  4. 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.

— Rule to remember

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. 1. If RAT is coded as SBU, how is COW coded?

    1. CPX
    2. DOX
    3. DPX
    4. 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. 2. If KITE is coded as MKVG, how is FISH coded?

    1. GJTI
    2. HKUJ
    3. HJUK
    4. 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. 3. If HOT is coded as GNS, how is LAMP coded?

    1. KALO
    2. KZMO
    3. KZLO
    4. 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. 4. A word is coded by moving each letter forward by 1, and its code is EPH. What is the word?

    1. COG
    2. DOH
    3. FQI
    4. 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. 5. If LION is coded as NKQP, which word is coded as DGCT?

    1. BEAR
    2. BEAT
    3. DEAR
    4. 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.

Privacy · Terms · Refunds · Delivery