TECHNOLOGIESTieInn Technologies

Coding-decoding

Coding-decoding: letter shift codes

6 min read · 8 practice questions · free

Useful for:IT testsBanksSSC / RailwaysTNPSC

What it is

A word is written in a code, and you apply the same code to another word. In letter shift codes, each letter is replaced by a letter a few places away in the alphabet.

The common patterns:

  1. every letter moves forward by the same number (+2)
  2. every letter moves backward by the same number (−2)
  3. each letter moves by its position: 1st +1, 2nd +2, 3rd +3…

How to solve it

  1. Write the positions of the word and its code, letter by letter.
  2. Find the change for each letter. Is it the same each time, or does it grow?
  3. Apply the same changes to the new word.

Wrap round the alphabet: after Z comes A (Z + 1 = A; A − 1 = Z).

Tips and shortcuts

  • Check every letter, not just the first. A code can look like "+1" on the first letter and turn out to be "+1, +2, +3".
  • Use the anchors E = 5, J = 10, O = 15, T = 20 to count fast.
  • Reversed order is a separate rule. If the code letters look right but are in a different order, the word may also be reversed.
  • Decoding is the same rule backwards: if coding is +2, decoding is −2.

Solved examples

Example 1 (easy): fixed forward shift

If LAMP is coded as NCOR, how is BELL coded?

L→N, A→C, M→O, P→R: +2 each. BELL → DGNN.

Example 2 (medium): backward shift

If ROAD is coded as QNZC, how is MILK coded?

Each letter −1 (and A − 1 = Z). MILK → LHKJ.

Example 3 (hard): growing shift

If GOLD is coded as HQOH, how is FISH coded?

G+1 = H, O+2 = Q, L+3 = O, D+4 = H. FISH → F+1 G, I+2 K, S+3 V, H+4 L → GKVL.

Example 4 (medium): decoding

In a code where every letter moves +3, a word is written as FDW. What is the word?

Move each letter back 3: F→C, D→A, W→T. The word is CAT.

Try it

Pick an answer and press Check. Generated questions get new numbers every time you ask.

  1. Question 1easy

    In a certain code, RICE is written as SJDF. How is DESK written in that code?

  2. Question 2easy

    In a certain code, MILK is written as PLON. How is SHIP written in that code?

  3. Question 3easy

    In a certain code, LEAF is written as OHDI. How is RAIN written in that code?

  4. Question 4medium

    In a certain code, FISH is written as EHRG. How is KITE written in that code?

  5. Question 5medium

    In a certain code, BOOK is written as ANNJ. How is TREE written in that code?

  6. Question 6medium

    In a certain code, RAIN is written as PYGL. How is STAR written in that code?

  7. Question 7hard

    In a code, STAR becomes TVDV. What does ROAD become?

  8. Question 8hard

    In a code, RAIN becomes SCLR. What does LEAF become?

Ready for a timed set?

Fresh questions on just this problem type, with a score and every explanation at the end. Free.

Test me on this →