Coding-decoding: find the rule, then code the next word

Lesson 4 of 1625 min5 practice questionsFree

On the gate board, GATE is written as HBUF. Rafi thinks a new letter was stuck on the end. Seema writes the two words one under the other.

G A T E

H B U F

G to H is one place forward, A to B is one place, T to U is one place, and E to F is one place. The rule is a constant shift of +1. The same shift turns ROAD into SPBE: R to S, O to P, A to B, and D to E.

A coding-decoding question gives you a pair, or a short set of sentences, and asks you to code a new word with the same rule. Read every letter, or every repeated word, before you decide what the rule is.

A constant letter shift. GATE becomes HBUF by moving every letter +1, and the same shift turns ROAD into SPBE. A schematic only.

Schematic only. GATE to HBUF is +1 on every letter, so ROAD becomes SPBE.

A constant letter shift

Write the place of each letter: A is 1 and Z is 26. Compare the given pair letter by letter. If every letter moves by the same number of places, that number is the rule. Then apply the same shift to the new word.

The shift can go backwards. If GOLD is coded as FNKC, each letter has moved one place back: G to F, O to N, L to K, and D to C. IRON under the same rule becomes HQNM.

If a shift steps past Z, it wraps to A, just as a letter series does. Y + 2 is A. A step back from A is Z.

Do not reverse the word when the pairs show a shift. The reverse of GATE is ETAG, which is not HBUF.

Opposite letters

Some codes replace each letter by its opposite in the alphabet. Opposite places add to 27. A (1) pairs with Z (26), B (2) with Y (25), C (3) with X (24), and M (13) with N (14).

To code a word, replace every letter by its opposite and keep the order. LOCK becomes OLXP: L pairs with O, O with L, C with X, and K with P.

A +1 shift is not an opposite: GATE shifted by +1 is HBUF, not TZGV. Do not also reverse the word unless the question says so.

The English alphabet with places 1 to 26, and opposite pairs that add to 27: A with Z, B with Y, through M with N. A schematic only.

Schematic only. Places run from 1 to 26. Opposite places add to 27.

Position-number and letter-to-number codes

A letter can be written as its place. RUG is 18-21-7, because R is 18, U is 21, and G is 7. The same rule writes LIP as 12-9-16.

Sometimes the code is a single number: the sum of the places. BEAD is 2 + 5 + 1 + 4 = 12. Under that rule, CLAY is 3 + 12 + 1 + 25 = 41.

A different number rule uses 27 minus the place: A becomes 26, and Z becomes 1. Check which rule the given pair actually uses. Do not mix a place-sum with a letter-by-letter list.

A whole-word code

In some questions each ordinary word has one code word. There is no letter shift to find. Match the words that repeat.

"cool wind blows" is coded as "mek tav rup".

"wind stops now" is coded as "tav jan lod".

wind appears in both sentences, and so does tav. So tav means wind. After that, the first sentence still has cool and blows unmatched, and mek and rup unmatched, so you need another sentence to split them.

"cool nights come" is coded as "mek sib yal".

cool appears in the first and third sentences, and so does mek. So mek means cool, and the leftover rup in the first sentence means blows.

Do not invent a letter shift for mek, tav and rup. Do not give a code for a word that never appears.

A whole-word code. cool wind blows is mek tav rup, and wind stops now is tav jan lod, with wind and tav highlighted. A schematic only.

Schematic only. The word that repeats, wind, is the code that repeats, tav.

Worked examples

Example 1. If BELT is coded as DGNV, how is FARM coded?

A GBSN
B HCTO
C HARM
D EZQL
Show answer

Correct answer: B

B to D, E to G, L to N, and T to V are all +2, so F + 2 is H, A + 2 is C, R + 2 is T, and M + 2 is O: HCTO. A is FARM with +1, which is GBSN. C moves only the first letter by +2, which is HARM. D is FARM with −1, wrapping A to Z, which is EZQL.

Example 2. If GOLD is coded as FNKC, how is IRON coded?

A HQNM
B JSPO
C HRON
D IROM
Show answer

Correct answer: A

Each letter of GOLD has moved one place back, so I − 1 is H, R − 1 is Q, O − 1 is N, and N − 1 is M: HQNM. B is IRON with +1. C moves only the first letter. D moves only the last letter.

Example 3. If LOCK is coded as OLXP, how is MINT coded?

A NJOU
B TNIM
C NRMG
D OLXP
Show answer

Correct answer: C

Each letter is replaced by its opposite: 13 + 14 = 27, 9 + 18 = 27, 14 + 13 = 27, and 20 + 7 = 27, so MINT is NRMG. A is MINT with +1, which is NJOU. B is MINT reversed, which is TNIM. D copies the given code, OLXP.

Example 4. If the letters of a word are replaced by their places, RUG is 18-21-7. How is LIP coded?

A 12-9-16
B 15-18-11
C 12-9-15
D 16-9-12
Show answer

Correct answer: A

L is 12, I is 9, and P is 16, so the code is 12-9-16. B uses 27 minus each place, which is 15-18-11. C writes P as 15, which is 12-9-15. D reverses the letters, which is 16-9-12.

Example 5. If A is 1 and the code of a word is the sum of its places, BEAD is 12. What is the code of CLAY?

A 26
B 12
C 41
D 40
Show answer

Correct answer: C

3 + 12 + 1 + 25 = 41. A is not the sum of these places. B copies the code of BEAD. D treats Y as 24, so 3 + 12 + 1 + 24 = 40.

Example 6. In the sentences above, what is the code for wind?

A mek
B tav
C rup
D jan
Show answer

Correct answer: B

wind and tav are the only word and code that appear in both of the first two sentences. A and C appear only in the first sentence, where cool and blows are still unmatched. D appears only in the second sentence, with stops and now still both unmatched.

A common mistake

Do not stop at the first letter. If only the first letter of BELT to DGNV is checked, +2 looks possible, but so do several other stories. Check every letter, or every repeated word. If a shift would move past Z, wrap to A. For a number code, decide whether you are listing places, adding them, or using 27 minus the place.

Quick check

Q1. If PARK is coded as RCTM, how is MILE coded?

A NJMF
B OKNG
C LHKD
D OILE
Show answer

Correct answer: B

P to R, A to C, R to T, and K to M are all +2, so M + 2 is O, I + 2 is K, L + 2 is N, and E + 2 is G: OKNG. A is MILE with +1, which is NJMF. C is MILE with −1, which is LHKD. D moves only the first letter by +2, which is OILE.

Q2. If BIRD is coded as AHQC, how is LOAN coded?

A MPBO
B KNZM
C KNAN
D LNZM
Show answer

Correct answer: B

Each letter of BIRD has moved one place back, so L − 1 is K, O − 1 is N, A − 1 wraps to Z, and N − 1 is M: KNZM. A is LOAN with +1, which is MPBO. C does not wrap A back to Z, which leaves KNAN. D leaves the first letter unshifted, which is LNZM.

Q3. If FIRE is coded as URIV, how is BOAT coded?

A CPBU
B TAOB
C YLZG
D XKYF
Show answer

Correct answer: C

Opposite places add to 27: 2 + 25 = 27, 15 + 12 = 27, 1 + 26 = 27, and 20 + 7 = 27, so BOAT is YLZG. A is BOAT with +1, which is CPBU. B is BOAT reversed, which is TAOB. D uses 26 minus the place (B to X, O to K, A to Y, T to F), which is XKYF.

Q4. If the letters of a word are replaced by their places, HOPE is 8-15-16-5. How is SAND coded?

A 19-1-14-4
B 8-26-13-23
C 19-1-14-3
D 4-14-1-19
Show answer

Correct answer: A

S is 19, A is 1, N is 14, and D is 4, so the code is 19-1-14-4. B uses 27 minus each place, which is 8-26-13-23. C writes D as 3, which is 19-1-14-3. D reverses the letters, which is 4-14-1-19.

Q5. "tea cup full" is coded as "wip dal sen", and "cup falls down" is coded as "dal muk vor". What is the code for cup?

A wip
B muk
C dal
D sen
Show answer

Correct answer: C

cup appears in both sentences, and so does dal. So dal means cup. A and D appear only in the first sentence, with tea and full still unmatched. B appears only in the second sentence.

Quick reference

  • Compare every letter, or every repeated word, before you name the rule.
  • A constant shift moves every letter by the same number of places. +1 turns GATE into HBUF and ROAD into SPBE. Past Z, wrap to A.
  • Opposite places add to 27. A-Z, B-Y, C-X, …, M-N. Keep the order.
  • A place code lists the positions, such as 18-21-7. A sum code adds them.
  • In a whole-word code, match the words that repeat. Do not force a letter shift, and do not code a missing word.
Practise this lesson5 questions · 10 marks · +2 / −0.25 · every answer explained
Start practice: Coding and Decoding Practice

Sign in to keep your progress. Sign in