RSSB Rajasthan CET (Graduate) · Module 47 · basic depth · 5 min
Coding and decoding
What RSSB Rajasthan CET (Graduate) asks from this chapter
Syllabus lines this chapter covers:
CET Graduation Level (one paper) · Reasoning and mental ability.
RSSB Rajasthan CET (Graduate) questions from this module are being sorted into our bank.
Cut to basic depth for RSSB Rajasthan CET (Graduate). 52 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.
Each letter takes two steps
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.
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.
Quick revision
One-page summary box
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.