Coding-Decoding Practice Questions With Answers

Last reviewed 7 October 2026

Coding-decoding questions give a rule through an example and ask you to apply it. This page covers the common rule types and a method to find them quickly.

The alphabet positions to know

A = 1, B = 2, … M = 13, N = 14, … Z = 26. Remember the pairs that add to 27: A–Z, B–Y, C–X, D–W, E–V, F–U, G–T, H–S, I–R, J–Q, K–P, L–O, M–N. These are the "opposite" letters used in reverse-alphabet codes.

Common types of rules

TypeExample rule
Fixed shiftEach letter moves forward by 1 (A→B)
Changing shift+1, +2, +3 and so on
Reverse alphabetA↔Z, B↔Y
Letter to numberA = 1, B = 2, so CAB = 312
Word substitution"Apple" is called "mango"
Symbol or number groupsMatch the words across sentences to find each code
RearrangementLetters reversed or swapped in pairs

A method

  1. Write the positions of the given word's letters and of its code.
  2. Compare letter by letter: a constant shift, a reverse or a changing shift.
  3. Check the rule on every letter of the example.
  4. Apply the rule to the new word.

Worked examples

Example 1. If COLD is coded as DPME, how is WARM coded? Each letter moves one place forward: W→X, A→B, R→S, M→N, so XBSN.

Example 2 (reverse alphabet). If CAT is coded as XZG, how is DOG coded? C(3)→X(24): 27 − 3 = 24 ✓. A(1)→Z(26) ✓; T(20)→G(7) ✓. So D(4)→W(23), O(15)→L(12), G(7)→T(20): WLT.

Example 3 (changing shift). If BAKE is coded as CCNI, how is FAME coded? First find the rule: B(2)→C(3): +1; A(1)→C(3): +2; K(11)→N(14): +3; E(5)→I(9): +4. So the shift increases by 1 each time. For FAME: F(6)+1 = G; A(1)+2 = C; M(13)+3 = P; E(5)+4 = I: GCPI.

Example 4 (word codes). In a code, "red blue sky" is "ka mi do", "blue sea" is "mi pa" and "sky high" is "do la". Common word "blue" ↔ "mi"; common word "sky" ↔ "do". So "red" is "ka".

Example 5 (number codes). If A = 1, B = 2 and so on, the code for "BAD" is 214.

Example 6 (sum of positions). The sum of positions of the letters in "CAB" is 3 + 1 + 2 = 6.

Common traps

  • Assuming the first shift is constant without checking later letters.
  • Counting positions wrongly beyond M (the halfway point).
  • Wrapping around the alphabet: Z + 1 = A.
  • Missing the position-dependent rule where the shift changes with place.

Speed tips

  • Memorise the letter positions and the 27-pairs.
  • Write numbers above the letters.
  • For word codes, compare sentences that share exactly one word.

A practice routine

  1. Day 1: fixed shift and reverse alphabet, ten questions.
  2. Day 2: changing shifts and positions.
  3. Day 3: word and number codes.
  4. Day 4: a timed set of 12 at 45 seconds each.

Where it appears

Coding-decoding appears in banking reasoning, SSC CGL reasoning, railway reasoning and MAT papers. Related topics: number series and blood relations.

Practice tests below are published by institutes and educators on TestMint.

Related guides

Available mock tests

Related reading

Start practising on TestMint

Attempt free and paid mock tests from coaching institutes and get your score and answer review as soon as you submit.

Try free mock tests Visit the marketplace

Frequently asked questions

Write the alphabet positions of the word and its code, compare letter by letter for a constant shift, reverse or changing shift and check the rule on every letter.

Letters whose positions add up to 27, such as A–Z, B–Y and M–N. Reverse-alphabet codes use these pairs.

Compare sentences that share exactly one word; the common code element is that word's code. Eliminate to find the rest.

Compute the shift for each letter; if it forms a pattern (+1, +2, +3), apply the same pattern to the new word.

Wrap around: after Z comes A, so Y + 3 = B.

About 30 to 50 seconds, quicker once you know the alphabet positions.

A = 1 to Z = 26 and the pairs that add to 27.

Yes. It appears in SSC, railway, MAT and many campus aptitude tests.

On this page below: tests published by institutes on TestMint, each showing creator, question count and duration.