Skip to content
Free shipping above ₹499
Oakspine Press

Coding–decoding for SSC GD

If BOOK is written as CPPL, how is PEN written? Coding–decoding questions give you a code and ask you to use it. In SSC GD the codes follow a few simple rules: letters moved forward or back, words reversed, opposite letters and letter numbers. How to crack each type, with solved examples and practice.

21 Oct 2026 6 min read

यह गाइड हिंदी में पढ़ें →
In this guide
  1. Step zero: know the alphabet
  2. The six common types
  3. The method
  4. Solved examples
  5. Common mistakes
  6. Practice set
  7. What to do next

A coding–decoding question shows a word and its secret code, then asks you to code another word the same way. Sometimes it runs the other way and asks you to decode. Either way, the method is the same: compare the word and its code letter by letter until you can say the rule in one line.

Coding appears regularly in the SSC GD reasoning section and it is almost pure alphabet work. If you know letter positions without counting, most coding questions take under 40 seconds. That is why the reasoning plan puts it in week two, right after analogy and series.

Step zero: know the alphabet

Write A = 1 to Z = 26 on your rough sheet at the start of the exam. Use EJOTY to reach any letter fast: E = 5, J = 10, O = 15, T = 20, Y = 25.

You also need the opposite pairs. Each pair adds up to 27.

PairPositionsPairPositions
A – Z1 + 26H – S8 + 19
B – Y2 + 25I – R9 + 18
C – X3 + 24J – Q10 + 17
D – W4 + 23K – P11 + 16
E – V5 + 22L – O12 + 15
F – U6 + 21M – N13 + 14
G – T7 + 20

The six common types

TypeWhat happensQuick example
Same shiftEvery letter moves the same number of stepsBOOK → CPPL (+1)
Growing shiftFirst letter +1, second +2, third +3 …BAT → CCW
ReverseThe word is written backwardsTREE → EERT
Reverse and shiftWritten backwards, then each letter movesRAIN → OJBS
Opposite lettersEach letter is replaced by its pairABC → ZYX
Number codesLetters become positions, or their sumCAB → 312; CAT → 24

A seventh type, word substitution, has no alphabet work at all. "If sky is called water, and water is called road, what do we drink?" We drink water, and water is called road. Read slowly and answer with the code word, not the real word.

The method

  1. Write each letter's position under the word, and under the code.
  2. Find the change for each letter: +1, −2, +1 +2 +3, and so on.
  3. If the changes make no sense, check whether the code is the word reversed, or reversed and then shifted.
  4. If that fails, check opposite letters (positions adding to 27).
  5. Apply the rule to the new word. Check one letter of your answer against the options before you mark.

Solved examples

Example 1 (same shift). If BOOK is written as CPPL, how is PEN written?

  1. B → C, O → P, O → P, K → L. Each letter moves +1.
  2. P → Q, E → F, N → O.
  3. Answer: QFO.

Example 2 (shift back, with wrap). If DOG is written as BME, how is CAT written?

  1. D (4) → B (2), O (15) → M (13), G (7) → E (5). Each letter moves −2.
  2. C → A. A − 2 wraps round to Y. T (20) → R (18).
  3. Answer: AYR.

Example 3 (growing shift). If COLD is written as DQOH, how is WARM written?

  1. C → D is +1. O → Q is +2. L → O is +3. D → H is +4.
  2. W (23) + 1 = X. A (1) + 2 = C. R (18) + 3 = U (21). M (13) + 4 = Q (17).
  3. Answer: XCUQ.

Example 4 (reverse and shift). If RAIN is written as OJBS, how is CLOUD written?

  1. R → O and A → J show no simple shift. Try reversing: RAIN backwards is NIAR.
  2. NIAR → OJBS. N → O, I → J, A → B, R → S. Each letter +1.
  3. CLOUD backwards is DUOLC. Add 1 to each: E, V, P, M, D.
  4. Answer: EVPMD.

Example 5 (opposite letters). If ABC is written as ZYX, how is GOLD written?

  1. A–Z, B–Y and C–X are opposite pairs.
  2. G (7) → T (20). O (15) → L (12). L (12) → O (15). D (4) → W (23).
  3. Answer: TLOW.

Example 6 (number code by sum). If CAT is coded as 24, what is the code for DOG?

  1. C (3) + A (1) + T (20) = 24. The code is the sum of positions.
  2. D (4) + O (15) + G (7) = 26.
  3. Answer: 26.

Common mistakes

MistakeCorrect way
Finding the rule from one or two lettersCheck every letter of the word before applying it
Forgetting to wrap round after Z or before AZ + 1 = A; A − 1 = Z
Missing a reversed codeIf the shifts look random, reverse the word and compare again
Coding when the question asks you to decodeRead which way the question runs; decoding means moving the other way
Answering word substitution with the real wordGive the code name, not the thing itself

Practice set

  1. If SUN is written as TVO, how is MAP written?
  2. If FISH is written as HKUJ, how is BIRD written?
  3. If STAR is written as RATS, how is POOL written?
  4. If ABC is written as ZYX, how is HIT written?
  5. If BAT is written as CCW, how is SIT written?
  6. If CAT is coded as 24, what is the code for BOY?
  7. In a code, each letter is replaced by the next letter. Which word is written as DBS?
  8. If "pen" is called "pencil", "pencil" is called "book" and "book" is called "bag", what do we write with in ink?

Answers:

  1. NBQ. Each letter +1.
  2. DKTF. Each letter +2: B → D, I → K, R → T, D → F.
  3. LOOP. The word is reversed.
  4. SRG. Opposite letters: H (8) → S (19), I (9) → R (18), T (20) → G (7).
  5. TKW. Growing shift +1, +2, +3: S → T, I → K, T → W.
  6. 42. B (2) + O (15) + Y (25) = 42.
  7. CAR. Decode by moving each letter one step back: D → C, B → A, S → R.
  8. Pencil. We write in ink with a pen, and a pen is called "pencil".

What to do next

  • Learn the 13 opposite pairs until you can say them in under 20 seconds.
  • Solve 20 coding questions a day for a week, writing positions under every letter.
  • Add one line to your mistake log for every wrong answer: which type it was, and what you missed.
  • Practise alphabet questions alongside coding, because both use the same letter positions.
  • Revise analogy, where letter analogies use these same shifts.

A note on dates and numbers. Exam patterns, vacancies and schedules change from year to year. Always confirm the current details in the latest notification on the Staff Selection Commission website .

Get the next SSC GD guide by email

New guides every week. No spam, unsubscribe any time.