Sarkari RiseLogin

Coding-Decoding Questions for UP POLICE CONSTABLE

Free, AI-curated practice for the Coding-Decoding section of UP POLICE CONSTABLE. We have 70+ verified questions in this bank. Below: 5 sample questions. Sign up free to unlock unlimited practice + AI explanations + per-topic analytics.

▶ Start free — UP POLICE CONSTABLE mockAll UP POLICE CONSTABLE resourcesAlready a user? Sign in →
📍 Coding-Decoding is also tested in:
SSC CGL (124)SSC GD (94)SSC MTS (82)SSC CHSL (72)
Why this topic matters · 7 min read
Coding-Decoding is a high-frequency Reasoning topic in UP Police Constable exams, typically appearing in 2-4 questions per paper. The exam tests letter-shift patterns, number substitution, and position-based codes. Most questions follow predictable logic: Caesar cipher (A-Z shift), reverse alphabets, or position-number mapping. Speed and pattern recognition matter more than complex math. Aspirants often lose marks by missing the pattern on first read or miscounting alphabet positions.

What is Coding-Decoding

Coding is converting plain language into a secret code using a fixed rule. Decoding is reversing it. In UP Police exams, you are given a code pattern (usually 2-3 examples) and asked to either decode a message or encode a new word. The rule is always consistent and logical—never random. Your job is to spot the rule from the examples, then apply it.

  • Code = rule applied to original word
  • Rule is always consistent across all examples
  • Common rules: letter shift, reverse, position-number swap, vowel/consonant substitution
  • Pattern recognition is the key skill, not memorization
  • Most questions solvable in 30-45 seconds once pattern is found

Letter-Shift Coding (Caesar Cipher)

Each letter shifts by a fixed number in the alphabet. For example, if the shift is +1, A becomes B, B becomes C, and so on. This is the most common pattern in UP Police exams. To solve: pick any letter from the code, count how many positions it moved forward or backward, then apply that shift to all letters in the target word. Always count carefully—off-by-one errors are common.

  • Identify shift amount from first example: compare original letter with coded letter
  • Apply same shift to all letters in the word
  • Shift can be forward (+) or backward (-)
  • Z wraps to A, A wraps to Z (circular alphabet)
  • Vowels and consonants shift equally—no special rules
Key formulas
Coded Letter Position
(Original Position + Shift) mod 26
When: To find the coded letter when shift is known
Shift Amount
Coded Position - Original Position
When: To find the shift from one example
Worked examples

Example: CAT is coded as DBU. Find code for DOG. Solution: C→D is +1 shift. A→B is +1. T→U is +1. So shift = +1. D→E, O→P, G→H. Answer: EPH.

Example: HELLO is coded as GDKKN. Find code for WORLD. Solution: H→G is -1, E→D is -1, L→K is -1. Shift = -1. W→V, O→N, R→Q, L→K, D→C. Answer: VNQKC.

Reverse Alphabet Coding

Each letter is replaced by its opposite in the alphabet. A becomes Z, B becomes Y, C becomes X, and so on. This is a special case of letter-shift (shift of -25 or +25, same result). The pattern is symmetric: if A→Z, then Z→A. Very common in UP Police papers. Spot it when the code looks like a mirror of the original.

  • A↔Z, B↔Y, C↔X, D↔W, E↔V, and so on
  • Formula: opposite = 27 - original position (in 1-26 scale)
  • Vowels: A↔Z, E↔V, I↔R, O↔L, U↔F
  • Easy to verify: apply twice, should get original word back
  • No wrapping confusion—just mirror logic
Key formulas
Reverse Alphabet
Opposite Position = 27 - Original Position
When: To find the reverse-alphabet code of any letter
Worked examples

Example: ZEBRA is coded as AVYIZ. Verify: Z→A (27-26=1), E→V (27-5=22), B→Y (27-2=25), R→I (27-18=9), A→Z (27-1=26). Code = AVYIZ. Correct.

Example: If HELLO is reverse-alphabet coded, find the code. H→S, E→V, L→O, L→O, O→L. Code = SVOOL.

Position-Number Coding

Letters are replaced by their position in the alphabet (A=1, B=2, ..., Z=26). Sometimes the code shows numbers, sometimes it shows the numbers spelled out. In UP Police exams, you might see a word coded as numbers, or numbers decoded back to letters. This is straightforward once you memorize the position of key letters.

  • A=1, B=2, C=3, ... Z=26 (always this order)
  • Code can be written as digits (1-26) or spelled words (ONE, TWO, etc.)
  • Reverse: given numbers, convert back to letters
  • Watch for multi-digit numbers: 1-9 are single digit, 10-26 are two digits
  • Spacing matters: 111 could be 1-1-1 (AAA) or 11-1 (KA) or 1-11 (AK)
Worked examples

Example: CAT is coded as 3-1-20. Find code for DOG. D=4, O=15, G=7. Code = 4-15-7.

Example: Decode 8-5-12-12-15. H=8, E=5, L=12, L=12, O=15. Word = HELLO.

Vowel-Consonant Substitution

Vowels are replaced by one set of letters/numbers, consonants by another. For example, all vowels might become X and all consonants become Y, or vowels shift by +2 while consonants shift by +3. This requires identifying which letters are vowels (A, E, I, O, U) and which are consonants, then applying different rules to each group.

  • Vowels: A, E, I, O, U (5 letters)
  • Consonants: all other 21 letters
  • Rule can differ for each group: different shifts, different substitutions
  • Always check both groups in the examples to identify the separate rules
  • Common trap: forgetting Y is sometimes a vowel (rare in these exams, but watch)

Word-Position Coding

Letters are rearranged based on their position in the word or alphabet. For example, the 1st and last letters swap, or letters are reversed, or sorted alphabetically. This is less common in UP Police but does appear. Identify the rearrangement pattern from examples.

  • Common patterns: reverse word, sort alphabetically, swap pairs, rotate left/right
  • Always verify pattern on all given examples before applying
  • Position-based rules are deterministic—same word always codes the same way
  • Watch for words with repeated letters—pattern must handle them consistently
⚠ Common mistakes to avoid
  • Miscounting alphabet positions: A=1, not 0. Count on fingers if unsure. Z=26, not 25.
  • Forgetting the shift wraps around: if Z shifts +1, it becomes A, not AA or error.
  • Applying different rules to different examples: the rule MUST be consistent. If first example shows +1 shift, all others must use +1.
  • Confusing encoding and decoding direction: read carefully—are you given code and asked for word, or vice versa?
  • Ignoring spaces or punctuation: usually ignored in UP Police codes, but double-check the question.
  • Assuming vowels and consonants follow the same rule: always verify separately if the pattern seems inconsistent.
🧠 Memory aids
  • AEIOU = vowels (5). All others = consonants (21). Total 26.
  • A=1, Z=26. Middle letter M=13. Use this to estimate positions quickly.
  • Reverse alphabet: A↔Z, B↔Y, C↔X. Think of a mirror—opposite sides of the alphabet.
  • Caesar Cipher: +1 shift is A→B→C. -1 shift is A→Z→Y. Count direction carefully.
  • POS-NUM: Position in alphabet = number code. A=1, B=2, ..., Z=26. No exceptions.
🎯 UP POLICE CONSTABLE exam tips
  • UP Police Coding-Decoding questions usually appear in the Reasoning section, 2-4 questions per paper. Time limit is tight—aim to solve each in under 45 seconds.
  • Letter-shift (Caesar cipher) is the most frequent pattern. Master this first. Reverse alphabet is second most common.
  • Questions often give 2-3 examples to establish the pattern. Always verify your identified pattern on ALL examples before answering.
  • Watch for 'find the code' vs 'find the word' phrasing. Misreading this costs marks.
  • If stuck on pattern after 30 seconds, move on. Coding-Decoding is not worth getting stuck on—other Reasoning topics may be faster.
  • Recent UP Police papers show a mix of simple shifts (+1, -1, reverse) and position-number codes. Complex multi-rule patterns are rare.
  • Double-check your final answer by reversing the logic: if you coded CAT as DBU, decode DBU back to CAT to verify.

Sample questions

Q1 · medium · PYQ 2019
In a code language, 639 means 'water is drink', 316 means 'juice is drink' and 219 means 'water or juice'. Find the code for 'or'.
  1. 3
  2. 9
  3. 1
  4. 2
Q2 · medium · PYQ 2019
In a certain code, WANT is written as 4715 and COPE is written as 2863. How is NOTE written in that code?
  1. 9890
  2. 1853
  3. 8118
  4. 2384
Q3 · medium · PYQ 2019
In a code language 319 means 'ice is cold', 421 means 'winter is cold', 249 means 'ice in winter'. Find the code for 'in'.
  1. 4
  2. 2
  3. 1
  4. 9
Q4 · medium · PYQ 2018
In a certain code language, THANKS is coded as SKNTHA. How will REGRET be coded?
  1. TRREEG
  2. GERRET
  3. TERREG
  4. REGTER
Q5 · medium · PYQ 2024
In a certain code language, 'FLOWER' is coded as 'RFOELW', then 'ANIMAL' will be written as:
  1. LAIANM
  2. LANIAM
  3. LANJAM
  4. LAJDNM
💡 Want answers + explanations + 65+ more Coding-Decoding questions? Sign up free →
⭐ Recommended for UP POLICE CONSTABLE aspirants

Full AI 6-Month

all your target exams · 6 months · unlimited mocks + AI
₹799~₹4.4/day
Sign up free, then unlockSee all plans →

More UP POLICE CONSTABLE topics

Number Series
82+ practice questions
Direction Sense
71+ practice questions
Analogy
71+ practice questions
Blood Relations
64+ practice questions
Time Speed Distance Trains and Boats
48+ practice questions
Word Formation
43+ practice questions

Free practice, AI explanations, 24 exams — all in one app

Daily 10-Q quiz · AI doubt solver in Hindi + English · adaptive mocks · 49,000+ practice questions (19,000+ verified PYQs).

Sign up freePricingTry Daily 10-Q