TNPSC Group 4 course‹› 0:00 studied

TNPSC Group 4 · Module 55 · basic depth · 5 min

Coding and decoding

What TNPSC Group 4 asks from this chapter

Syllabus lines this chapter covers:

  • Part C: Aptitude and mental ability · Reasoning: logical reasoning, puzzles, dice, visual reasoning, number series.

TNPSC Group 4 questions from this module are being sorted into our bank.

Cut to basic depth for TNPSC Group 4. 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.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 20 answered

  1. If LAMP is written NCOR, how is SHIP written?

  2. If LAMP is written OZNK, how is SHIP written?

  3. If LAMP is written QNBM, how is SHIP written?

  4. If LAMP is written MCPT, how is SHIP written?

  5. If LAMP is coded 42, what is the code for SHIP?

  6. If RICE is written SJDF, how is GOLD written?

  7. If RICE is written IRXV, how is GOLD written?

  8. If RICE is written FDJS, how is GOLD written?

  9. If RICE is written SKFI, how is GOLD written?

  10. If RICE is coded 35, what is the code for GOLD?

  11. If BOOK is written ERRN, how is CAT written?

  12. If BOOK is written YLLP, how is CAT written?

  13. If BOOK is written LPPC, how is CAT written?

  14. If BOOK is coded 43, what is the code for CAT?

  15. If NOTE is written LMRC, how is RAIN written?

  16. If NOTE is written MLGV, how is RAIN written?

  17. If NOTE is written FUPO, how is RAIN written?

  18. If NOTE is written OQWI, how is RAIN written?

  19. If NOTE is coded 54, what is the code for RAIN?

  20. If ROAD is written SQDH, how is IRON written?

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Frequently asked questions

If CAT is coded as DBU, how is DOG coded?

Each letter moves one step forward, so EPH.

How do you solve sentence coding?

Find words common to two sentences and match them with codes common to both.

What is the reverse alphabet code?

Each letter is replaced by its opposite, so A becomes Z, B becomes Y and so on.

Is coding-decoding asked in CSAT?

Occasionally, but it is more common in SSC, banking and state PSC prelims.