Test

Reasoning practice

Coding decoding questions: letter, number and sentence coding with tricks and 20 solved practice questions

13 min read Updated EnglishAlso inहिंदी

At a glance

Coding-decoding questions hide a fixed rule (a letter shift, reversal, opposite letters, position numbers or word-to-code matching). Find the rule by comparing the given word with its code letter by letter, then apply exactly the same rule to the new word.

Letter positions
EJOTY = 5, 10, 15, 20, 25 (E5, J10, O15, T20, Y25)
Reverse position
27 − position (A = 26, Z = 1)
Opposite letters
Positions add to 27: A-Z, B-Y, C-X, M-N
Wrap-around
After Z comes A: Y + 2 = A, B − 3 = Y
Sentence coding
Common word in two sentences = common code in their codes

Coding decoding questions give you a word, number or sentence written in a secret code and ask you to crack the rule and use it again. This page lists every common type in a table, teaches the position tricks that make shifting letters fast, works through 8 solved examples and gives 20 practice MCQs with explanations, written in the SSC, RRB and bank style. Finish with the timed SSC reasoning test.

Take a timed test

Types of coding-decoding and their rules

Every coding question follows one rule, applied the same way to each letter or word. Your job is to spot the rule from the example and copy it exactly. The table shows the rules examiners use most often.

TypeRuleExample
Letter shiftEach letter moves forward or back by a fixed numberCAT → DBU (+1)
Alternate shiftShifts change in a pattern, such as +1, −1WINTER → XHOSFQ
ReverseThe word is written backwardsTABLE → ELBAT
Opposite lettersA↔Z, B↔Y; positions add to 27CODE → XLWV
Position numbersA = 1 to Z = 26, used directly, summed, squared or doubledCAT → 24 (3 + 1 + 20)
Reverse positionA = 26 to Z = 1, that is 27 − positionDOG → 23 12 20
Split or pair swapHalves or pairs reversed separatelyNATION → ANITNO
Sentence codingEach word has one code; match common words with common codes'tea' = code shared by two tea sentences
SubstitutionThings are called by other namessky is called earth
Symbol or operation codingLetters stand for +, −, ×, ÷18 R 3 P 4 with R = ÷, P = ×

Memorise the positions once

EJOTY gives you 5, 10, 15, 20 and 25. Every letter from C to Z is at most two steps from one of them (A and B you know anyway): R is T − 2 = 18, M is O − 2 = 13, H is J − 2 = 8. With this, a shift question takes seconds instead of counting from A.

Shortcuts and tricks, with worked examples

  1. 1

    Trick 1: write the gaps

    Write the word above its code and note the change under each letter. If BOOK → CPPL, the gaps are +1, +1, +1, +1. A pattern such as +1, −1, +1, −1 or +1, +2, +3, +4 shows up immediately.

  2. 2

    Trick 2: use EJOTY for positions

    Need the position of S? T is 20, so S is 19. Need U + 4? U is 21, plus 4 is 25, which is Y. This avoids counting along the alphabet.

  3. 3

    Trick 3: opposite-letter pairs

    Remember the 13 pairs: AZ, BY, CX, DW, EV, FU, GT, HS, IR, JQ, KP, LO, MN. FROG in opposite letters is F→U, R→I, O→L, G→T, so UILT.

  4. 4

    Trick 4: check length and first letters

    If the code has the same letters as the word in a different order, it is a reversal or swap, not a shift. If the code has the same length but new letters, look for a shift or opposite letters.

  5. 5

    Trick 5: sentence coding by elimination

    Pick a word that appears in exactly two sentences, find the one code those two sentences share, and fix that pair. Remove fixed words and codes, and repeat. If two words always appear together, their codes cannot be separated.

Solved coding-decoding examples, easy to exam level

Cover the solution, find the rule yourself, then compare.

  1. 1

    1. Letter shift (easy)

    In a code, CAT is written DBU. How is DOG written? C→D, A→B, T→U: each letter +1. D→E, O→P, G→H, so DOG = EPH.

  2. 2

    2. Reverse order

    If GARDEN is written NEDRAG, how is FLOWER written? NEDRAG is GARDEN backwards, so FLOWER becomes REWOLF.

  3. 3

    3. Alternate shifts

    If MOTHER is coded NNUGFQ, how is FATHER coded? M+1 = N, O−1 = N, T+1 = U, H−1 = G, E+1 = F, R−1 = Q: the pattern is +1, −1. FATHER: F+1 = G, A−1 = Z, T+1 = U, H−1 = G, E+1 = F, R−1 = Q, so GZUGFQ.

  4. 4

    4. Opposite letters

    If LIGHT is written ORTSG, how is DARK written? L↔O, I↔R, G↔T, H↔S, T↔G are opposite pairs (positions add to 27). DARK: D↔W, A↔Z, R↔I, K↔P, so WZIP.

  5. 5

    5. Number coding

    If ACE = 9, what is BOX? A + C + E = 1 + 3 + 5 = 9, so the code is the sum of positions. BOX = 2 + 15 + 24 = 41.

  6. 6

    6. Sentence coding

    'pa tik ro' means 'sweet morning tea', 'ro mi zu' means 'tea is hot' and 'zu ka pa' means 'hot sweet milk'. Code for 'morning'? Sentences 1 and 2 share tea and ro, so tea = ro. Sentences 1 and 3 share sweet and pa, so sweet = pa. What is left in sentence 1 is morning = tik.

  7. 7

    7. Substitution

    If water is called air, air is called fire, fire is called sky and sky is called earth, where do birds fly? Birds fly in the sky, and sky is called earth, so the answer is earth. Answer the coded name of the real thing.

  8. 8

    8. Exam level: two-part rule

    If BRIGHT is written IRBTHG, how is FLOWER written? Split BRIGHT into halves BRI and GHT and reverse each half: IRB and THG. FLOWER splits into FLO and WER, which reverse to OLF and REW, so the code is OLFREW.

Practice set 1: easy (7 questions)

  1. 1If BOOK is coded as CPPL, how is PEN coded in the same language?

    Show answer

    Answer: (D) QFO

    Explanation: Compare letters: B→C, O→P, O→P, K→L, each letter moves one step forward (+1). Apply +1 to PEN: P→Q, E→F, N→O, giving QFO.

  2. 2If CAT is coded as 24 (the sum of letter positions), what is the code for DOG?

    Show answer

    Answer: (C) 26

    Explanation: Check the rule: C = 3, A = 1, T = 20, and 3 + 1 + 20 = 24. For DOG: D = 4, O = 15, G = 7, so 4 + 15 + 7 = 26.

  3. 3In a code, TABLE is written as ELBAT. How is CHAIR written in that code?

    Show answer

    Answer: (A) RIAHC

    Explanation: ELBAT is TABLE written backwards. Reverse CHAIR letter by letter: R, I, A, H, C, which gives RIAHC.

  4. 4If A is written as Z, B as Y and C as X, how is CODE written?

    Show answer

    Answer: (B) XLWV

    Explanation: This is opposite-letter coding: the positions of a letter and its code add to 27. C (3)→X (24), O (15)→L (12), D (4)→W (23), E (5)→V (22). CODE = XLWV.

  5. 5If ROSE is coded as TQUG, what is the code for LILY?

    Show answer

    Answer: (D) NKNA

    Explanation: R→T, O→Q, S→U, E→G: each letter moves +2. LILY: L→N, I→K, L→N, Y→A (Y + 1 = Z, Z + 1 = A, the alphabet wraps). Code: NKNA.

  6. 6If red means blue, blue means green, green means yellow and yellow means white, what is the colour of grass?

    Show answer

    Answer: (B) Yellow

    Explanation: Grass is actually green. In this code, green is called yellow, so the answer is yellow. Do not apply the code twice and do not answer the real colour.

  7. 7If Z = 52 and ACT = 48, what is BAT?

    Show answer

    Answer: (C) 46

    Explanation: Z is the 26th letter and 26 × 2 = 52, so each letter is worth twice its position. ACT = (1 + 3 + 20) × 2 = 48, which confirms the rule. BAT = (2 + 1 + 20) × 2 = 46.

Practice set 2: moderate (7 questions)

  1. 8In a code, PLANET is written as SDMZKO. How is GARDEN written in that code?

    Show answer

    Answer: (A) MDCQZF

    Explanation: Two steps. Step 1, move each letter back one: PLANET → OKZMDS. Step 2, reverse it: SDMZKO. For GARDEN: back one gives FZQCDM, reversed gives MDCQZF.

  2. 9If WINTER is coded as XHOSFQ, how is SUMMER coded?

    Show answer

    Answer: (C) TTNLFQ

    Explanation: W→X (+1), I→H (−1), N→O (+1), T→S (−1), E→F (+1), R→Q (−1): the shifts alternate +1, −1. SUMMER: S→T, U→T, M→N, M→L, E→F, R→Q, giving TTNLFQ.

  3. 10In a code language, 'lo ki ta' means 'rain is heavy', 'ta mu pe' means 'heavy load carried' and 'pe ri lo' means 'carried in rain'. What is the code for 'load'?

    Show answer

    Answer: (D) mu

    Explanation: Sentences 1 and 2 share only 'heavy' and only the code 'ta', so heavy = ta. Sentences 2 and 3 share 'carried' and 'pe', so carried = pe. The remaining word in sentence 2 is 'load' and the remaining code is 'mu'.

  4. 11If each letter is coded by its reverse position (A = 26, B = 25, and so on to Z = 1), what is the code for DOG?

    Show answer

    Answer: (A) 23 12 20

    Explanation: Reverse position = 27 − position. D = 27 − 4 = 23, O = 27 − 15 = 12, G = 27 − 7 = 20. The code is 23 12 20. The option 4 15 7 is the forward positions, a trap.

  5. 12If CAT is coded as 9-1-400, how is DOG coded?

    Show answer

    Answer: (B) 16-225-49

    Explanation: C = 3 and 3² = 9, A = 1 and 1² = 1, T = 20 and 20² = 400: each letter becomes the square of its position. D = 4² = 16, O = 15² = 225, G = 7² = 49.

  6. 13If ROAD is coded as URDG, which word is coded as WUDLQ?

    Show answer

    Answer: (B) TRAIN

    Explanation: R→U, O→R, A→D, D→G: each letter moves +3. To decode, move each letter of WUDLQ back 3: W→T, U→R, D→A, L→I, Q→N. The word is TRAIN.

  7. 14If TEAM is coded as 3415 and MEAT as 5413, what is the code for MATE?

    Show answer

    Answer: (C) 5134

    Explanation: From TEAM = 3415: T = 3, E = 4, A = 1, M = 5. MEAT = 5 4 1 3 confirms it. MATE = M, A, T, E = 5, 1, 3, 4, so 5134.

Practice set 3: exam level (6 questions)

  1. 15In a code language, 'all good things matter' is 'zi ko la pe', 'good things come late' is 'la ru zi mo' and 'come and matter' is 'ru pe xa'. What is the code for 'all'?

    Show answer

    Answer: (A) ko

    Explanation: Sentences 1 and 3 share only 'matter' and only 'pe', so matter = pe. Sentences 1 and 2 share 'good things' and 'zi la', so those two words take zi and la. The only word left in sentence 1 is 'all', and the only code left is 'ko'.

  2. 16In the same code ('all good things matter' = 'zi ko la pe', 'good things come late' = 'la ru zi mo', 'come and matter' = 'ru pe xa'), what is the code for 'things'?

    Show answer

    Answer: (D) Either zi or la

    Explanation: 'good' and 'things' always appear together, and so do 'zi' and 'la'. Nothing separates them, so 'things' could be zi or la. Picking only zi is a guess; the safe answer is 'either zi or la'.

  3. 17If FISH is coded as 42 and BIRD as 33, what is the code for FROG?

    Show answer

    Answer: (B) 46

    Explanation: FISH: 6 + 9 + 19 + 8 = 42. BIRD: 2 + 9 + 18 + 4 = 33. The code is the sum of positions. FROG: 6 + 18 + 15 + 7 = 46.

  4. 18If NATION is coded as ANITNO, how is MOTHER coded?

    Show answer

    Answer: (A) OMHTRE

    Explanation: Split NATION into pairs NA, TI, ON and swap each pair: AN, IT, NO, giving ANITNO. MOTHER: MO, TH, ER become OM, HT, RE, giving OMHTRE.

  5. 19In a code, every vowel is replaced by the next letter and every consonant by the previous letter. How is BEAUTY coded?

    Show answer

    Answer: (D) AFBVSX

    Explanation: B (consonant) → A, E (vowel) → F, A (vowel) → B, U (vowel) → V, T (consonant) → S, Y (consonant) → X. Code: AFBVSX.

  6. 20If P means ×, Q means +, R means ÷ and S means −, what is the value of 18 R 3 P 4 Q 6 S 2?

    Show answer

    Answer: (C) 28

    Explanation: Replace the letters: 18 ÷ 3 × 4 + 6 − 2. Apply BODMAS, division and multiplication left to right first: 18 ÷ 3 = 6, 6 × 4 = 24. Then 24 + 6 − 2 = 28.

Common mistakes in coding-decoding

  • Finding the rule from only the first two letters. Check every letter; many codes change the shift halfway or alternate it.
  • Forgetting the wrap-around. Y + 2 is A and B − 3 is Y; the alphabet is a circle.
  • Coding when the question asks you to decode. If you are given the code, reverse the rule: a +3 code is decoded with −3.
  • In substitution questions, answering the real thing (sky) instead of its coded name (earth), or applying the substitution twice.
  • In sentence coding, fixing a code from a single sentence, or forcing a choice when two words always appear together.
  • Ignoring BODMAS in operation-coding questions after replacing the letters with signs.

How coding-decoding appears in SSC, RRB and bank exams

In SSC exams (CGL, CHSL, MTS, GD and others) coding-decoding is a regular part of General Intelligence and Reasoning, mostly letter shifts, reversals, opposite letters, number coding and mathematical-operation coding. RRB NTPC and Group D ask the same direct forms. Bank exams (IBPS and SBI PO and Clerk) prefer sentence coding, where several questions are asked on one set of coded sentences, and newer rule-based word coding that combines a shift with a reversal. Question counts vary from paper to paper, so practise all the forms in the table.

See the SSC CGL syllabus and exam pattern for where reasoning sits in the paper, then take the timed reasoning test to practise under a clock.

Frequently asked questions

How do I find the rule in a coding-decoding question quickly?
Write the word and its code one above the other and note the change for each letter. Same letters in a new order mean a reversal or swap; new letters with a steady gap mean a shift; letters whose positions add to 27 mean opposite-letter coding. Check the rule on every letter before using it.
What is the EJOTY trick?
EJOTY is a way to remember five anchor positions: E = 5, J = 10, O = 15, T = 20, Y = 25. Every letter from C to Z is within two steps of an anchor, so you can find any position without counting from A. It is the single most useful memory aid for letter coding and letter series.
How is sentence coding solved?
Compare two sentences at a time. The word they share matches the code they share. Fix that pair, remove it from every sentence, and repeat. If two words always occur together in the same sentences, their codes cannot be told apart, and the right option is the one that says either code.
Is coding-decoding asked in bank exams?
Yes. Bank prelims and mains reasoning sections regularly include coding-decoding, often as sentence coding with several questions on one set, or as rule-based coding that mixes shifts, reversals and conditions on vowels and consonants.
What should I do if two options both seem to fit?
Re-check the rule on every letter of the example, not just the first few. Usually one option breaks the pattern on the last letter or on a wrap-around such as Y to A. If the question is sentence coding and two codes really cannot be separated, choose the option that allows either.
How many questions should I practise daily?
Solve the 20 questions here untimed first and read every explanation. After that, 10 to 15 mixed coding questions a day for two weeks, plus a timed reasoning test each week, is enough for most candidates to make this a scoring topic.

Timed test

Take the timed SSC reasoning test

A timed General Intelligence and Reasoning test covering coding-decoding, series, blood relations and other question types, scored instantly.

10–50 Qs · pick length