Coding and Decoding→ next · ← back · F full screen · T themeExit
Logical reasoning
Coding and Decoding
Find the rule from the one example, then test it on a second letter before you trust it. Most codes are a shift, a reversal, or a position-sum.
Start with this
If CAT is written as DBU, each letter moved one step forward. Coding questions hide a simple rule like that; your job is to find it and apply it.
Coding appears in almost every reasoning section. Most codes are one of four kinds: shift, reverse, opposite letter, or position number.
The four common codes
Shift: every letter moves the same number of steps (CAT → DBU is +1). The shift can also change per letter (+1, +2, +3 ...).
Reverse: the word is written backwards, sometimes with a shift too.
Opposite: each letter becomes its mirror in the alphabet (A <→ Z, B <→ Y). Pairs always add to 27.
Numbers: letters become their positions (CAT → 3 1 20), or the sum of positions.
Letter positions: A=1 ... Z=26 (reverse position underneath). Opposite pairs add to 27
Worked example: The four common codes
If MOTHER is coded as NPUIFS, how is FATHER coded?
M → N, O → P, T → U: each letter +1. Why: Compare letter by letter.
FATHER +1 = GBUIFS.
Answer: GBUIFS
Letter positions: A=1 ... Z=26 (reverse position underneath). Opposite pairs add to 27
Worked example: The four common codes
If GOLD is coded as TLOW, how is SILK coded?
G (7) → T (20): 7 + 20 = 27. O → L: 15 + 12 = 27. Why: Opposite letters add to 27.
SILK → HROP.
Answer: HROP
Letter positions: A=1 ... Z=26 (reverse position underneath). Opposite pairs add to 27
Worked example: The four common codes
If CAT = 24, what is DOG?
C + A + T = 3 + 1 + 20 = 24. Why: Sum of positions.
D + O + G = 4 + 15 + 7 = 26.
Answer: 26
Letter positions: A=1 ... Z=26 (reverse position underneath). Opposite pairs add to 27
Sentence codes ('Chinese' coding)
You get several sentences and their codes. Words common to two sentences share a common code. Compare sentences in pairs and cross out what matches.
Worked example: Sentence codes ('Chinese' coding)
'sky is blue' = 'ta na pa', 'blue is deep' = 'na ka ta', 'sky and sea' = 'pa ro mi'. What is the code for 'deep'?
Sentences 1 and 2 share 'is' and 'blue', and codes 'ta' and 'na'. Why: Common words match common codes.
Sentence 2's remaining word 'deep' matches its remaining code.
'ka'.
Answer: ka
Number codes and letter-number mixes
Some codes turn each letter into its position (CAB = 312), its reverse position (A = 26), or the square of its position.
Mixed codes: vowels become numbers and consonants become shifted letters. Check vowels and consonants separately.
Worked example: Number codes and letter-number mixes
If ACE = 135, what is BDF?
A=1, C=3, E=5: each letter becomes its position.
B=2, D=4, F=6: 246.
Answer: 246
Worked example: Number codes and letter-number mixes
If A = 26, B = 25, what is the code for CAT, written as the sum of the codes?
Code = 27 - position. Why: Reverse numbering.
C = 24, A = 26, T = 7: total 57.
Answer: 57
Word substitution
'If sky is called sea, sea is called water, water is called air ... what do fish live in?' Fish live in water, and water is called AIR. Find the real answer first, then give its new name.
Worked example: Word substitution
If cloud is called white, white is called rain, rain is called green, green is called air. What is the colour of milk?
Milk is really white. Why: Answer the real question first.
White is called rain: the answer is rain.
Answer: rain
Worked example: Word substitution
If pen means book, book means bag, bag means eraser. What do students carry books in?
Books are carried in a bag.
Bag is called eraser.
Answer: eraser
Shortcut: Sentence code by overlap
Use it when: 'pit na sa' = you are good, 'na ho pit' = are you fine ...
Words common to two sentences map to codes common to the same two sentences.
Peel them off one at a time.
Sentence code by overlap: try it
'la pe ro' = sweet hot coffee, 'ro ki ne' = coffee is good, 'pe ne ta' = hot good tea. Code for 'good'?
'coffee' is in sentences 1 and 2; the only code in both is 'ro'.
'good' is in 2 and 3; the only code in both is 'ne'.
Answer: ne
Your turn medium
If GREEN is coded TIVVM (reverse alphabet), how is BLUE coded?
B → Y, L → O, U → F, E → V.
Answer: YOFV
Your turn medium
If 'water' is called 'air', 'air' is called 'fire', and 'fire' is called 'sky', what do fish live in?
Fish live in water, and water is called 'air'.
Answer: air
Your turn medium
If TEACHER is coded VGCEJGT, how is STUDENT coded?
+2 each.
Answer: UVWFGPV
Your turn hard
If FRIEND is coded HUMJTK, how is CANDLE coded?
F+2, R+3, I+4, E+5, N+6, D+7.
Apply the same shifts to CANDLE.
Answer: EDRIRL
Recap
test shift, reverse, opposite and number codes in that order