Coding-Decoding
What is Coding-Decoding?
In coding-decoding questions, a word or number is changed into a code using a hidden rule. You are shown one example, and you must discover the rule and use it on a new word. The rule is nearly always simple, so the skill lies in spotting it quickly.
Letter Shifting
The most common rule moves every letter a fixed number of steps along the alphabet. In CAT to DBU, each letter moves one step forward. Using the same rule, DOG becomes EPH.
Sometimes letters are replaced by their position numbers, where A=1, B=2 and so on up to Z=26. Opposite letters, such as A and Z or B and Y, always add up to 27.
| Word | Code | Rule |
|---|---|---|
| CAT | DBU | +1 each letter |
| RED | SFE | +1 each letter |
| MANGO | NBOHP | +1 each letter |
| PEN | NEP | Reverse the word |
Memorise EJOTY: E=5, J=10, O=15, T=20, Y=25. It helps you count positions fast.
Reversal and Position Patterns
Another rule writes the letters in reverse order, so PEN becomes NEP. Some questions mix two rules, for example reversing the word and then shifting every letter. When that happens, test each rule on its own first.
A Step-by-Step Method
First compare the first letter of the word with the first letter of its code to see the shift. Then check that the same rule fits the other letters. Finally, apply it to the new word.
Worked example: if MANGO is coded as NBOHP, each letter moves one step ahead, so APPLE is coded as BQQMF.
Summary
- Find the rule from the given example.
- Common rules are +1, -1, reversal and position numbers.
- Opposite letters add up to 27.
- Always test the rule on every letter.