Coding hides a word, letter, or sentence behind a rule so only someone who knows the rule can read it back. Decoding is reversing that process. Every question gives you one or more worked examples of the code and asks you to apply the same rule to a new word.
Coding-Decoding is named explicitly in the HP Police Constable syllabus (HPPSC, No.04-06/2024-PSC (R-III), dated 18.11.2024) and recurs across HPSSC JOA (IT), Clerk, Patwari and Home Guard papers.
What is coding-decoding?
Coding-decoding is a reasoning topic in which a word, number or phrase is changed into a code by a fixed rule. You find the rule from the example and use it to code or decode another word.
The six code types
1. Position-shuffle coding — the letters of the word are rearranged (most commonly, simply reversed). `BRINJAL → LAJNIRB` is BRINJAL written backwards. 2. Substitute-letter coding — every letter is replaced by another letter a fixed number of places away in the alphabet (forward or backward, and it can wrap past Z back to A). `TEACH → VGCEJ` shifts every letter forward by 2. 3. Opposite-letter coding — each letter is replaced by its "mirror" letter, the one whose alphabet position adds up to 27 with it (A⇌Z, B⇌Y, C⇌X...). 4. Letter-to-number coding — each letter is replaced by a digit or number, and you must work out the mapping by comparing two or more coded words that share letters. 5. Meaning-substitution coding — words are secretly swapped for other words (`'red' means 'yellow'`), sometimes chained across many colours/objects. You must trace the chain to connect the real-world fact to its code word. 6. Sentence / common-word coding — whole sentences are coded as strings of numbers or nonsense words. Compare pairs of coded sentences that share a real word; whatever digit/word both coded versions share must stand for that shared real word.
Method for each type
Reversal: check the given pair for a reversal first — it's the single most common rule and takes two seconds to confirm.
Letter shift: convert the first letter of the plain word and its coded partner to alphabet numbers and subtract. If every letter shifts by the same amount, that's your rule — apply it to every letter of the new word, wrapping past Z back to A if needed (e.g. Y + 2 wraps to A).
Letter-to-number: list every letter/digit pair you can read off from the given coded word(s). If two coded words share a letter, its digit must match in both — use that to cross-check your mapping before applying it to the new word.
Meaning-substitution chains: write the chain as `real → code` pairs in order, then ask "what is the code word for the real thing the question mentions?" — not the other way around. This reversal of direction is the single most common mistake in this sub-type.
Sentence coding: find the digit/word common to any two coded sentences that share exactly one real word between them. Repeat with a different pair to peel off a second common word. Whatever is left over in one sentence, once every shared word is accounted for, is the code for the one word that sentence doesn't share with any other.
Exam-day traps
- Confirm the rule on the FULL given example before applying it, not just the first letter — a rule that works for one letter by coincidence will break on the rest of the word.
- Wraparound is easy to forget. Shifting Y forward by 2 gives A, not "27" — alphabet positions cycle back to 1 after 26.
- Meaning-substitution questions ask what the code word IS for a real thing, or what a coded word REALLY MEANS — these are opposite questions. Re-read the question stem before answering.
- In sentence coding, a digit can appear in multiple sentences for the same word — that's the whole method, not a contradiction. Don't discard a mapping just because it recurs.
- Guessing costs you here. Wrong answers score −0.25, and several HP papers apply negative marking too. If the rule doesn't confirm cleanly across the whole given example in ~45 seconds, leave the question blank with "No Answer / Don't Know" rather than guess.