Coding-Decoding: Letter Shifts, Tricks and Solved Questions
In coding-decoding, a word, number or sentence is turned into a secret form using a fixed rule, and you must find that rule and apply it to a new word. It is one of the most reliable scoring areas in reasoning sections because every question has a clear logic. Once you know the alphabet positions by heart, most questions take under 40 seconds.
Asked in: GAT, HAT, NTS, ISSB, SSC CGL, IBPS PO, CAT
Alphabet positions: the foundation
Every letter has a forward position (A = 1 up to Z = 26) and a backward position (Z = 1 up to A = 26). Nearly every letter code is built on these numbers, so learn them until you can recall any letter instantly.
A quick memory hook is EJOTY: E = 5, J = 10, O = 15, T = 20, Y = 25. From these anchors you can reach any letter in one or two steps, for example R is two before T, so R = 18.
- Backward position = 27 β forward position
- Opposite letter of a letter at position n = letter at position 27 β n
Letter shift codes
The most common rule moves each letter a fixed number of places forward or backward, for example +1 turns CAT into DBU. Write the positions of the given word and its code side by side and subtract to find the shift.
The shift can also change from letter to letter: +1, +2, +3 (growing), +1, β1, +1 (alternating) or a pattern linked to the letter's place in the word. Always check at least three letters before you decide the rule.
When a shift goes past Z, wrap round to A. So Y + 3 = B, because Y to Z is one step, Z to A is two and A to B is three.
- Code letter position = original position Β± shift (subtract 26 if the result is above 26)
Opposite letters and reversal
In opposite-letter coding each letter is replaced by its mirror partner: A with Z, B with Y, C with X, and so on. Every pair adds up to 27, so the partner of H (8) is S (19).
In reversal coding, the whole word or parts of it are written backwards. A common variation splits the word into two halves and reverses each half separately, or swaps the first and last letters only. Compare the code with the word letter by letter to spot this.
- Pairs: AZ, BY, CX, DW, EV, FU, GT, HS, IR, JQ, KP, LO, MN
Number coding
Here a word is written as a number. The number may be the sum of the letter positions, their product, the sum of their squares, or each letter written as its own position number side by side.
Test the simplest idea first (the sum), then the number of letters times something, then squares. If FACE = 15 and 6 + 1 + 3 + 5 = 15, the rule is the sum.
Substitution coding
A chain of words is given in which each word is called by another name, such as 'water is called milk and milk is called juice'. The question asks for a real-world fact.
First answer the question in normal life, then replace that answer with its code name. For example, if water is called milk and you are asked what a thirsty person drinks, the real answer is water, which is called milk here.
Sentence (common word) coding
Several sentences and their codes are given, but the code words may be in any order. Compare two sentences at a time: the word they share has the code they share.
Keep eliminating. Once two or three words are fixed, the remaining word in a sentence must take the remaining code. Never assume the code words appear in the same order as the English words.
Solved examples
- If COLD is coded as DPME, how will WARM be coded?
- Compare positions: C (3) to D (4), O (15) to P (16), L (12) to M (13), D (4) to E (5). Each letter moves +1.
- Apply +1 to WARM: W to X, A to B, R to S, M to N.
Answer: XBSN - In a certain code, TABLE is written as GZYOV. How is CHAIR written in that code?
- T (20) and G (7) add up to 27, A and Z add to 27, B and Y add to 27. So each letter is replaced by its opposite letter.
- C (3) becomes X (24), H (8) becomes S (19), A becomes Z, I (9) becomes R (18) and R becomes I.
Answer: XSZRI - If PEN is coded as QGQ, how is INK coded?
- P to Q is +1, E to G is +2, N to Q is +3. The shift grows by one with each letter.
- Apply +1, +2, +3 to INK: I + 1 = J, N + 2 = P, K + 3 = N.
Answer: JPN - If CAT = 24 in a certain code, what is DOG?
- C = 3, A = 1, T = 20. Their sum is 3 + 1 + 20 = 24, which matches the code, so the rule is the sum of positions.
- D = 4, O = 15, G = 7, so DOG = 4 + 15 + 7 = 26.
Answer: 26 - If book is called pen, pen is called table, table is called chair and chair is called bag, on what do students sit in class?
- Answer the real-life question first: students sit on a chair.
- Now look up the code name of chair. The question says chair is called bag.
- Do not go further down the chain. Only one replacement is made.
Answer: bag - In a code language, 'mi po ra' means 'good morning Ali', 'ra ke su' means 'Ali drinks tea' and 'po ke lu' means 'morning tea hot'. What is the code for 'drinks'?
- Sentences 1 and 2 share the word Ali and the code ra, so Ali = ra.
- Sentences 2 and 3 share the word tea and the code ke, so tea = ke.
- Sentence 2 is 'Ali drinks tea' = 'ra ke su'. With Ali = ra and tea = ke, the code left for drinks is su.
- As a check, sentences 1 and 3 share morning and po, so morning = po and good = mi.
Answer: su
Exam shortcuts
- Memorise EJOTY (5, 10, 15, 20, 25) and the opposite pairs. These two facts alone solve most letter codes quickly.
- Check only the first and last letters of each option first. This usually removes two or three options before you work out the full code.
- If the code has the same letters as the word in a different order, think reversal or swapping. If the letters are new, think shifting or opposites.
- In sentence coding, start with the word that appears in the most sentences. It locks down the most codes fastest.
- For decoding questions (code given, word asked), undo the steps in reverse order: undo the last step first.
Common mistakes
- Forgetting to wrap round after Z. Z + 2 is B, not an error.
- Deciding the rule from only the first letter. Patterns like +1, β1, +1 look like a plain +1 shift until the second letter is checked.
- In substitution questions, going down the whole chain instead of replacing the real answer only once.
- In sentence coding, assuming the code words are in the same order as the English words.
Practice MCQs
- In a certain code, BOOK is written as CPPL. How is DESK written in that code?
A) EFTM
B) EFTL
C) CDRJ
D) EFSL
Answer: B) EFTL β Each letter of BOOK moves one step forward (B to C, O to P, K to L). Doing the same to DESK gives D to E, E to F, S to T, K to L, so the code is EFTL. - If MANGO is coded as OCPIQ, what is the code for APPLE?
A) CRRNG
B) CRRMG
C) BQQMF
D) CQRNG
Answer: A) CRRNG β Every letter of MANGO moves two places forward (M to O, A to C and so on). So A to C, P to R, P to R, L to N, E to G, giving CRRNG. - In a code language, GOD is written as TLW. How will MAN be written in the same code?
A) NZL
B) OBM
C) NZM
D) MZN
Answer: C) NZM β Each letter is replaced by its opposite letter (the pair that adds up to 27): G and T, O and L, D and W. For MAN: M (13) pairs with N (14), A with Z, N with M, so the code is NZM. - If PAKISTAN is coded as NATSIKAP, how is LAHORE coded?
A) EROHAL
B) EROHLA
C) ERHOAL
D) EORHAL
Answer: A) EROHAL β NATSIKAP is simply PAKISTAN written backwards. Writing LAHORE backwards gives EROHAL. - In a certain code, FACE = 15. Using the same rule, what is CAGE?
A) 15
B) 17
C) 16
D) 18
Answer: C) 16 β FACE = 6 + 1 + 3 + 5 = 15, the sum of the alphabet positions. CAGE = 3 + 1 + 7 + 5 = 16. - If LION is written as KHNM, how is TIGER written in that code?
A) UJHFS
B) SHFDQ
C) SHFDS
D) SHGDQ
Answer: B) SHFDQ β Each letter of LION moves one step back (L to K, I to H, O to N, N to M). For TIGER: T to S, I to H, G to F, E to D, R to Q, giving SHFDQ. - If sky is called sea, sea is called water, water is called air, air is called cloud and cloud is called rain, what do we breathe in?
A) air
B) water
C) cloud
D) rain
Answer: C) cloud β We breathe air. In this language air is called cloud, so the answer is cloud. In substitution questions, find the real answer first and then replace it with its code name. - In a code language, 'kal tip ro' means 'bright sun rises', 'tip na zu' means 'sun sets early' and 'zu ro mek' means 'early rises moon'. What is the code for 'bright'?
A) tip
B) kal
C) ro
D) mek
Answer: B) kal β Sun is common to sentences 1 and 2, and so is tip, so sun = tip. Rises is common to 1 and 3, and so is ro, so rises = ro. The only code left in sentence 1 is kal, so bright = kal. - If ROAD is coded as SNBC, how is WIND coded?
A) XJOE
B) VHMC
C) XHOE
D) XHOC
Answer: D) XHOC β The letters move +1, β1, +1, β1 in turn: R to S, O to N, A to B, D to C. For WIND: W to X, I to H, N to O, D to C, giving XHOC. - In a code, DEAF is written as 4516. How is FADE written in the same code?
A) 6154
B) 6145
C) 6415
D) 1645
Answer: B) 6145 β Each letter is written as its position number: D = 4, E = 5, A = 1, F = 6. So FADE is 6, 1, 4, 5, written 6145. - If ABC = 14 and ACE = 35 in a certain code, what is BAD?
A) 7
B) 19
C) 21
D) 24
Answer: C) 21 β The code is the sum of the squares of the positions: ABC = 1 + 4 + 9 = 14 and ACE = 1 + 9 + 25 = 35. So BAD = 4 + 1 + 16 = 21. - If NATIONAL is coded as ITANLANO, how is BUILDING coded?
A) LIUBGNID
B) GNIDLIUB
C) LIUBGNDI
D) UBLINGID
Answer: A) LIUBGNID β Split NATIONAL into two halves, NATI and ONAL, and write each half backwards: ITAN and LANO. BUILDING splits into BUIL and DING, which become LIUB and GNID, so the code is LIUBGNID. - In a certain code, WORD is written as XQUH. How is SMART written in that code?
A) TNBSU
B) TODUY
C) UODVX
D) TODVY
Answer: D) TODVY β The first letter moves 1 place forward, the second 2, the third 3, the fourth 4, and so on. SMART becomes S+1 = T, M+2 = O, A+3 = D, R+4 = V, T+5 = Y, which is TODVY. - In a code, CAT is written as GZX. Using the same rule, how is FISH written?
A) SHRU
B) URHS
C) SRHU
D) HSRU
Answer: A) SHRU β Two steps are used. Replace each letter by its opposite (C to X, A to Z, T to G, giving XZG) and then reverse it to get GZX. For FISH the opposites are U, R, H, S, giving URHS, and reversing gives SHRU. - A code moves every letter three places forward and then writes the result in reverse order. Which word is coded as HWDO?
A) TALE
B) LEAT
C) MATE
D) LATE
Answer: D) LATE β Work backwards. First undo the reversal: HWDO becomes ODWH. Then move each letter three places back: O to L, D to A, W to T, H to E. The word is LATE.
Questions
How many coding-decoding questions come in GAT, NTS or bank exams?
Usually two to five in a reasoning section. They are short and rule-based, so they are among the easiest marks to secure with practice.
Do I need to memorise the alphabet positions?
Yes. Knowing A = 1 to Z = 26 and the opposite pairs by heart is the single biggest speed gain. Use EJOTY as anchors and practise for a few days.
What if no simple rule seems to fit?
Try combined rules: a shift followed by a reversal, opposites followed by a reversal, or different shifts for odd and even places. Testing three letters is usually enough to confirm a rule.