Why this topic matters · 7 min read
Coding-Decoding is one of the most consistently asked topics in SSC CHSL Reasoning, with 3 to 5 questions appearing almost every year. Questions test your ability to find the pattern by which letters, numbers, or words are transformed. Types include letter shifting, number substitution, word coding, and mixed coding. With a clear method, these are among the easiest marks to score in the section.
Letter Coding (Shifting Pattern)
In this type, each letter in a word is replaced by another letter that is a fixed number of steps forward or backward in the alphabet. For example, if A becomes D, then every letter moves 3 steps forward. Always check the first two letters of the word and find the gap. That same gap will apply to all letters.
If the shift is forward, add the number. If backward, subtract. Remember the alphabet ends at Z (26) and wraps around, so Z plus 1 becomes A again.
- Find shift by comparing original letter position with coded letter position.
- Use A=1, B=2 ... Z=26 to calculate positions quickly.
- If shift is the same for all letters, it is a simple Caesar cipher.
- Sometimes even positions shift differently from odd positions — check alternate letters separately.
- Reverse coding: if COME is coded as XLNV, each letter is replaced by its mirror (A-Z, B-Y, C-X) — this is called opposite coding.
- Mnemonic: ATBASH for opposite coding — A pairs with Z, T pairs with G.
Key formulas
Position after forward shift
New position = (Original position + Shift - 1) mod 26 + 1
When: Use when shift crosses Z, to wrap around to A
Opposite letter position
Opposite of letter at position N = letter at position (27 - N)
When: Use in ATBASH or mirror-coding questions
Worked examples
If BOOK is coded as ERRN, find the shift. B(2) to E(5) = +3, O(15) to R(18) = +3, O(15) to R(18) = +3, K(11) to N(14) = +3. Shift = +3. Answer verified.
If COLD is coded as ZLOW, check: C(3) to Z(26) = -3 steps backward. O(15) to L(12) = -3. Consistent. So the rule is minus 3.
Number Coding
Here, letters are replaced by numbers using a specific rule — could be their position values, reversed position values, or some arithmetic applied on them. For example, A=1, B=2 or A=26, B=25 (reverse). Sometimes each letter is assigned a two-digit code and you read them together as a number.
Always decode at least two words before answering. One example is never enough to confirm the rule in number coding.
- Standard: A=1 to Z=26. Reverse: A=26 to Z=1.
- Sometimes the code number = position + constant (like position + 2).
- Look for whether vowels and consonants are coded differently.
- Sum coding: the code of the whole word = sum of letter positions.
- Product or multiplication coding is rare but has appeared in recent papers.
- Always verify your found rule with a second word given in the question.
Key formulas
Sum of letter positions
Code = Sum of (position of each letter in alphabet)
When: Used when a single number represents an entire word
Worked examples
If CAT = 24 and DOG = 26, check: C(3)+A(1)+T(20) = 24. Correct. D(4)+O(15)+G(7) = 26. Correct. Rule is sum of letter positions.
If ACE = 135, the code is just the positions written together: A=1, C=3, E=5, so code = 135.
Word Coding (Substitution)
In this type, actual words are substituted for other words. For example, sky is called green, green is called blue, blue is called red. Then the question asks: what is the color of grass? Grass is green, but green is called blue — so the answer is blue.
This is a trick type. Do not answer with the logical real-world answer. Always replace the final answer word with what it is called in the coded language.
- Read the chain of substitutions carefully.
- First find the real-world correct answer, then find what that word is called.
- Do not replace twice — only one substitution at the end.
- These questions take 30 to 45 seconds if you stay calm and follow the chain.
- Mnemonic: Real answer first, then swap once — RAFTS (Real Answer, Find Then Swap).
Mixed or Conditional Coding
Here, three or four sentences are coded and you must find the code for a single word by comparing sentences. If two sentences share one common word and their codes share one common code, that code belongs to that word.
This is like solving simultaneous equations. Eliminate the extras to isolate the target word.
- Compare two sentences that differ by only one word — the differing code = the differing word.
- Use process of elimination across all given coded sentences.
- Write out which words are common between sentences and match their codes.
- Order of code words usually does not match order of original words — do not assume left-to-right.
- These questions take 60 to 90 seconds — attempt them after easier ones in the set.
⚠ Common mistakes to avoid
- Assuming the coding is always A=1 without checking — always verify with at least two letters before committing to a rule.
- In word substitution, giving the real-world answer instead of the coded answer — for example, saying green instead of blue for grass color.
- In letter shifting, forgetting to wrap around at Z. After Z comes A, not ZA or AA.
- In mixed coding, assuming the first word of the sentence matches the first code — positions can be jumbled.
- Rushing through with one example verified — always cross-check with a second word or letter to confirm the pattern.
🧠 Memory aids
- ATBASH: A pairs with Z, B with Y — remember it as the alphabet folded in half and mirrored.
- RAFTS for word coding: Real Answer First, Then Swap — stops you from giving the uncoded answer.
- For shifting, think of a clock: go past 12 (Z) and you restart at 1 (A) — circular shift.
- In mixed coding, think of it like a Venn diagram: the word in the overlap of two sentences = the code in the overlap of their codes.
🎯 SSC CHSL exam tips
- SSC CHSL typically gives 3 to 4 coding-decoding questions per paper, mostly letter shifting and mixed coding. Word substitution appears once in a while.
- Letter shifting questions are the fastest to solve — under 30 seconds if you know A=1 to Z=26 by heart. Memorize this before exam.
- Mixed coding questions are slightly harder and take more time. In the exam, if stuck, skip and return — do not let one question eat 3 minutes.
- Recent CHSL papers (2023-2024) have shown more mixed coding and number coding than pure letter shifting, so practice those types more.
- Never spend more than 60 seconds on any single coding-decoding question. These are scoring questions but not worth losing time for other sections.
Q1 · medium · PYQ 2023
In a certain code language, 'FAMOUS' is written as 'AFOMSU', and 'FINGER' is written as 'IFGNRE'. How will 'INVEST' be written in that language?
- NIEVST
- NIEVTS
- NEIVTS
- NIVETS
Q2 · medium · PYQ 2025
In a certain code, "SMART" is written as "VPDUW". How is "TRAIN" written in that code?
- WUDJP
- WXDLQ
- WUDLQ
- WUCKR
Q3 · medium · PYQ 2023
In a certain code language, 'MAZZA' is written as 'OBBAC' and 'BLACK' is written as 'DMCDM'. How will 'FUZZY' be written in that language?
- HVBAA
- HVBBA
- HTBAA
- HVBZA
Q4 · medium · AI-verified
In a certain code, 'CAR' is coded as '3-1-18' and 'DOG' is coded as '4-15-7'. How will 'BAT' be coded?
- 2-1-20
- 2-20-1
- 1-2-20
- 20-1-2
Q5 · medium · PYQ 2021
In a certain code language, 'FROZEN' is coded as '504' and 'TONSILS' is coded as '756'. How will 'MARINE' be coded in that language?
- 456
- 520
- 652
- 360