BPSC TRE 4.0 · Module 59 · standard depth · 14 min
Coding and decoding
What BPSC TRE 4.0 asks from this chapter
Syllabus lines this chapter covers:
- Class 1 to 5 teacher · Part II, General Studies (120 questions): elementary mathematics, mental ability, general awareness, general science, social science, Indian National Movement, geography and environment (SCERT/NCERT-based).
BPSC TRE 4.0 questions from this module are being sorted into our bank.
Cut to standard depth for BPSC TRE 4.0. 7 deeper paragraphs are in the full chapter.
Start from zero: a secret message
Two friends agree to write every letter as the next letter of the alphabet. So CAT becomes DBU, and DOG becomes EPH. Anyone who knows the rule can read the message, while others see nonsense.
That is a code: a fixed rule that turns a word into something else. In an exam you are shown one word and its code, and you must find the rule. Then you apply it to a new word, or run it backwards to decode one.
The trick is to compare the word and its code letter by letter. Write the alphabet with positions (A = 1, B = 2, up to Z = 26) and see how far each letter moved. Almost every code in exams is built from a few simple moves.
Why this topic exists. Codes test whether you can find a rule from a single example and apply it without slips. The skill is close to reading a form, a cipher or a new data format and working out what each part stands for. It also rewards careful, letter-by-letter checking, which many careless candidates skip.
Shift codes: letters that move
A constant shift. If MANGO is written OCPIQ, then M → O, A → C, N → P, G → I and O → Q. Every letter has moved 2 places forward. So APPLE becomes CRRNG.
Backward shifts. If GREEN is written FQDDM, every letter has moved 1 place back. So BLUE becomes AKTD. To decode, simply move the other way.
A shift that changes. If PEN is written QGQ, then P moves 1, E moves 2 and N moves 3. The shift grows with the position of the letter, so INK becomes JPN: I + 1 = J, N + 2 = P and K + 3 = N. Always check every letter, because the shift may not be the same throughout.
Alternating shifts. If FROG is written GQPF, the moves are +1, −1, +1, −1. Then LION becomes MHPM. Mixed patterns like this catch students who check only the first letter.
Decoding a message. Sometimes the code is given and the word is asked. If every letter was moved 3 forward and the code reads FDW, move each letter 3 back: F → C, D → A and W → T. The hidden word is CAT.
Why it matters. Shift codes are the most common type in recruitment exams. Writing the positions above each letter turns them into simple addition.
Mirror letters and reversed words
Opposite letters. Fold the alphabet in the middle: A sits on Z, B on Y, C on X and M on N. The pair of the letter at position n is at 27 − n. If GOD is written TLW, then G (7) → T (20), O (15) → L (12) and D (4) → W (23).
Using the rule. With the same code, CAT becomes XZG: C (3) → X (24), A (1) → Z (26) and T (20) → G (7). A quick check is that each pair of positions adds to 27. Learn a few pairs by heart, such as A–Z, E–V, J–Q and M–N.
Reversal. Some codes just write the word backwards, so PENCIL becomes LICNEP and RUBBER becomes REBBUR. Others reverse the word and then shift it. If ROAD is written EBPS, reverse it to DAOR and move each letter 1 forward.
Spotting the rule fast. If the code of a short word looks like the alphabet run backwards, try the mirror rule first. If the code contains the same letters as the word in a new order, try reversal. If the letters are all different but close, try a shift.
Why it matters. When a shift does not explain the code, test the mirror rule and reversal next. These three rules cover most letter codes you will meet.
Number codes
Positions written in a row. If CAB is written 312, each letter has been replaced by its position. Then BAD is 214 and CAGE is 3175. Note that a two-digit position, such as 13 for M, makes the code longer, so read carefully.
Sums of positions. If DOG is coded 26, check the sum: 4 + 15 + 7 = 26. Then CAT is coded 3 + 1 + 20 = 24. Other variants use the product, or the sum multiplied by the number of letters.
Testing a guess. With only one example, several rules may fit. If two examples are given, test your rule on both before using it. For instance, if ACE = 9 and BDF = 12, the sum rule fits both, so GIK = 7 + 9 + 11 = 27.
Rules for vowels and consonants. A few codes treat vowels and consonants differently, for example writing every vowel as a digit and moving every consonant one place forward. Under such a rule, BOAT becomes C151U, because B → C, O → 15, A → 1 and T → U. When a question states special conditions, apply them one letter at a time and tick each letter as you go.
Why it matters. Number codes link reasoning with arithmetic. Knowing the positions by heart, with EJOTY as anchors, makes them fast.
Substitution: what is it called?
The puzzle. "If sky is called sea, sea is called water, water is called air and air is called cloud, what do fish swim in?" The trap is to answer "sea" or "water" straight away. Work in two steps instead.
Step one: answer in plain words. Fish swim in water. Ignore the code completely while doing this, and write the plain answer in the margin.
Step two: replace the word. Now look up what water is called. Water is called air, so the answer is air.
Why it confuses. The list of names is designed to make you jump from one word to the next in a chain. But only one link is needed: the real answer and its new name. Do not follow the chain further.
A second example. "If table is called chair, chair is called bed, bed is called cupboard and cupboard is called window, where do we sleep?" We sleep on a bed, and a bed is called cupboard. The chain would tempt you towards window, which is one link too far.
Why it matters. Substitution questions take ten seconds if you follow the two steps. They are a test of reading discipline more than of reasoning.
Sentence codes: matching words to code words
The setting. "In a code, 'tea is hot' is written 'la pi ko', 'hot and cold' is 'ko ra su' and 'tea and milk' is 'la ra mo'." The order of code words is usually jumbled, so position tells you nothing. Only shared words help.
Pair the sentences. 'Hot' appears in the first and second sentences, and the only code word in both is 'ko'. So hot = ko. In the same way, 'tea' is in the first and third, giving tea = la, and 'and' is in the second and third, giving and = ra.
Fill in the rest. Once the shared words are fixed, the leftovers fall into place. In the first sentence, 'is' must be pi. In the second, cold is su, and in the third, milk is mo.
When a word cannot be fixed. If a word appears in only one sentence alongside another single-use word, its code cannot be decided. Exams often include "cannot be determined" as an option for exactly this case. Do not guess between two leftover code words.
When the order is kept. In a few questions the code words keep the same order as the words, which makes the task trivial. Check this quickly by comparing the position of a word you have already fixed. If it moves around, ignore order completely and rely only on shared words.
Why it matters. Sentence codes reward a neat table: words in one column, code words in the other, and ticks as you match them. This is the same method used to compare two lists in any audit.
Where and why this is asked
Why examiners test it. Coding questions check whether you can infer a rule from limited evidence and then apply it exactly. Officers do this all the time with new forms, file numbers, scheme codes and classification systems. A careless reader who checks only the first letter makes the same mistakes in real work.
Where it shows up. Coding and decoding is a fixture of state aptitude papers and of recruitment exams for teachers, police, clerks and banks. Letter shifts, opposite letters and sentence codes are the most frequent forms. The union aptitude paper uses it rarely, but the same logic appears in its puzzles.
When it goes wrong. The usual slips are assuming a constant shift without checking every letter, miscounting positions near the end of the alphabet, following the whole chain in substitution questions and guessing in sentence codes when a word cannot be fixed. Each has a matching wrong option.
The habit to build. Write positions above both the word and the code, and the shift between them. Check every letter before applying the rule to a new word.
Practice set: twelve solved problems
Try each problem first, then read the steps. The problems go from easy to hard.
1. If CAT is written DBU, how is BAT written?
Every letter moves 1 forward. The answer is CBU.
2. If LAMP is written NCOR, how is DESK written?
Every letter moves 2 forward. The answer is FGUM.
3. If GREEN is written FQDDM, how is BLUE written?
Every letter moves 1 back. The answer is AKTD.
4. If BAD is written 214, how is CAGE written?
Each letter is replaced by its position: 3, 1, 7, 5. The answer is 3175.
5. If CAT is coded 24, what is the code for DOG?
The code is the sum of positions, and 4 + 15 + 7 = 26. The answer is 26.
6. If BAT is written YZG, how is FAN written?
Each letter is replaced by its opposite, at 27 − n. The answer is UZM.
7. If PENCIL is written LICNEP, how is RUBBER written?
The word is written backwards. The answer is REBBUR.
8. If water is called food, food is called tree, tree is called sky and sky is called wall, where do birds fly?
Birds fly in the sky, and sky is called wall. The answer is wall.
9. 'Go home now' is 'ta ma pa', 'come home soon' is 'ri pa lo' and 'go and come' is 'ma su ri'. What is the code for 'home'?
'Home' is in the first two sentences, and their only shared code word is pa. The answer is pa.
10. If PEN is written QGQ, how is CUP written?
The shifts are +1, +2 and +3, so C → D, U → W and P → S. The answer is DWS.
11. If FROG is written GQPF, how is LION written?
The shifts alternate +1 and −1. The answer is MHPM.
12. If ROAD is written EBPS, how is SHIP written?
Reverse SHIP to PIHS and move each letter 1 forward. The answer is QJIT.
Quick revision
- Compare the word and its code letter by letter, with positions written above.
- A shift may be constant, may grow with position or may alternate.
- Opposite letter of position n is at 27 − n; A–Z, E–V, J–Q and M–N are useful anchors.
- Some codes reverse the word, sometimes followed by a shift.
- Number codes use positions in a row or combined, such as their sum.
- Substitution: answer in plain words first, then replace that one word.
- Sentence codes: a word in two sentences takes the code word common to both.