Coding-Decoding
Asked in real papers: 19 questions in 15 official papers (Kerala PSC University Assistant 2026; West Bengal Civil Service etc. 2024; Kerala PSC Degree Level Main 2026, 2024; Kerala Sub Inspector of Police 2026, 2025, 2024; Kerala PSC DySP (Trainee) 2025; TNPSC Group 4 2025, 2024; Rajasthan State and Subordinate Services Combined Competitive 2024; TNPSC Group 2/2A 2024; TNPSC Group 1 2024; APPSC Group-II Services 2024), last asked 2026.
Kerala PSC University Assistant 2026 · Q77 West Bengal Civil Service etc. 2024 · Q36 Kerala PSC Degree Level Main 2026 · Q62 Kerala PSC Degree Level Prelims 2026 · Q65 Kerala PSC Degree Level Prelims 2026 · Q70 Kerala PSC DySP (Trainee) 2025 · Q32
Only real questions from official papers carry this tag; our practice questions never do.
In coding-decoding, one word and its code are given, and you must find a hidden rule and use it on a second word (or turn a code back into its word). In exams the rule is almost always one of four: every letter moves a fixed number of places, the word is reversed (and maybe moved), every letter is replaced by its opposite letter, or the letters become numbers that are added up. Turn letters into positions (A = 1 ... Z = 26) and the rule shows itself.
What should you know about Coding-Decoding?
- Letter shift: every letter moves by the same number k. SUMMER → UWOOGT: S → U, U → W, M → O, so k = +2 for every letter. A negative k moves towards A.
- Reverse, then shift: the word is written backwards first, then each letter may move. SUMMER reversed is REMMUS; moving every letter +2 gives TGOOWU. Test this when the code's first letter is close to the word's last letter.
- Opposite letters: each letter is replaced by its pair in A–Z, B–Y, C–X ... M–N; the two positions always add up to 27. SUMMER → HFNNVI (S = 19 → 8 = H). Sometimes the result is also reversed.
- Number codes: the code is the sum of the letter positions (HAT = 8 + 1 + 20 = 29), or the sum of reverse positions (Z = 1 ... A = 26).
- Decoding is the same rule run backwards: if coding moved letters +2, decoding moves the code's letters −2.
Which formulas and rules are used in Coding-Decoding?
Shift by k: new position = old position + k (past Z subtract 26, before A add 26)
e.g. X (24) + 3 = 27 → 27 − 26 = 1 = A
Opposite letter: position 27 − p
e.g. C = 3 → 27 − 3 = 24 = X
Reverse position of a letter = 27 − p (Z = 1, Y = 2, ..., A = 26)
e.g. D = 4 from the left = 23 from the right
Sum code = p₁ + p₂ + ... (one term per letter)
e.g. CAT = 3 + 1 + 20 = 24
What are the shortcuts for Coding-Decoding questions?
- Write the word and its code one above the other and find the gap for the first two letters only. If both gaps are the same (+2, +2), it is a plain shift: apply it straight to the options.
- If the gaps are all different, check the opposite pairs (do the positions add to 27?) and then the reversed word, before trying anything exotic.
- Repeated letters stay repeated: SUMMER has MM, so its code has a double letter in the same (or mirrored) place. Use this to strike out options fast.
- You rarely need the whole code: work out the first and last letters of the answer and pick the only option that has both.
- For number codes, add the given word first and confirm the total matches the code before adding the new word. If it does not, try reverse positions.
How do you solve Coding-Decoding questions? Worked examples
Example 1
In a certain code language, 'SUMMER' is written as 'UWOOGT'. How will 'CAMERA' be written in that language?
Solution
- S (19) → U (21), U (21) → W (23), M (13) → O (15): every letter moves +2.
- CAMERA: C → E, A → C, M → O, E → G, R → T, A → C
Answer: ECOGTC
Example 2
In a certain code language, 'SUMMER' is written as 'HFNNVI'. How will 'CAMERA' be written in that language?
Solution
- S (19) → H (8): 19 + 8 = 27. U (21) → F (6): 21 + 6 = 27. Every letter is replaced by its opposite letter.
- CAMERA: C (3) → X (24), A → Z, M (13) → N (14), E (5) → V (22), R (18) → I (9), A → Z
Answer: XZNVIZ
Example 3
In a certain code language, 'HAT' is written as '29'. How will 'JAM' be written in that language?
Solution
- Check the rule on HAT: H + A + T = 8 + 1 + 20 = 29. It matches, so the code is the sum of positions.
- JAM = J + A + M = 10 + 1 + 13 = 24
Answer: 24
What mistakes should you avoid in Coding-Decoding?
- Checking only the first letter. A +2 on S could also be "reverse and shift" by chance; confirm the rule on at least three letters before using it.
- Decoding in the same direction as coding. If the code moved letters forward, the word is found by moving the code's letters back.
- Forgetting to wrap round: Y + 3 is B, not a blank. Past Z, start again from A.
- Opposite letter vs reverse word: HFNNVI (opposite letters) and IVNNFH (opposite letters, reversed) are different answers. Look at the order as well as the letters.
Coding-Decoding question book: practice each sub-topic
- Letter-shift codes
- Reverse and shift
- Opposite-letter codes
- Number codes (letter values)
Question book · 4 chapters
Coding-Decoding
In a certain code language, 'TICKET' is written as 'SHBJDS'. Which word is written as 'AQZHM' in that language?
Solution
- T → S, I → H, C → B, K → J, E → D, T → S: every letter moves −1.
- So move every letter of AQZHM by +1: A → B, Q → R, Z → A, H → I, M → N
Answer: BRAIN
In a certain code language, 'BRIDGE' is written as 'EGDIRB'. How will 'OCEAN' be written in that language?
Solution
- BRIDGE reversed = EGDIRB; the word is written in reverse order: E → E, G → G, D → D, I → I, R → R, B → B
- OCEAN reversed = NAECO → N → N, A → A, E → E, C → C, O → O
Answer: NAECO
In a certain code language, 'LIGHT' is written as 'GSTRO'. How will 'CANDLE' be written in that language?
Solution
- Each letter is replaced by its opposite letter (A ↔ Z, B ↔ Y, ...; positions add up to 27) and the result is written in reverse order.
- C → X, A → Z, N → M, D → W, L → O, E → V
- XZMWOV reversed = VOWMZX
Answer: VOWMZX
In a certain code language, 'STAR' is written as '58'. How will 'WEB' be written in that language?
Solution
- The code is the sum of the letters' positions (A = 1, B = 2, ..., Z = 26).
- STAR = 19 + 20 + 1 + 18 = 58
WEB = 23 + 5 + 2 = 30
Open the book to turn the pages: every question with its answer and full solution.
Ready? Take a mock: fresh questions every time, each with a step-by-step solution.