ExamShortcut

Coding - Decoding

🔒 Log in to track
high importance~4 Q in Tier 16 formulas⚡ 10 shortcuts7 subtopics
All subtopics·Subtopic 1 of 7

The coding-decoding family

🔒 Log in to track
⏱ 5 min read🧩 6 question types🎯 14 practice Q
The idea in one minute

A coding question shows a word and its code. You find the rule from that pair, then use the same rule on a new word. No vocabulary is tested. The rule is always mechanical: letters move, change places, or turn into numbers or symbols.

01

What a code is

A code hides a word with a fixed rule. If every letter moves one step forward, CAT becomes DBU.

  • Coding means turning a word into its code.
  • Decoding means turning a code back into the word.

In the exam you see one word with its code. You find the rule. Then you use the same rule on a new word.

Rule: The rule comes only from the sample pair. Never invent a new rule for the new word.

02

The families at a glance

FamilyWhat happensSmall example
Letter shiftevery letter moves forward or backCAT → DBU (+1)
Reversalthe word is written backwardsLOGIC → CIGOL
Opposite lettersA↔Z, B↔Y and so onBAD → YZW
Rearrangementsame letters, new orderPLANET → LPNATE
Number codingthe word becomes a numberCAT → 24
Symbol codingeach letter gets a symbolM = #, A = @
Substitutionthings get new namessky is called sea
Language codingsentences become code wordsgood day = pa ki

Each family has its own lesson. This lesson shows how to tell them apart. It also covers rearrangement and two-step rules.

03

Find the rule in four checks

Do these checks in order. Stop at the first one that fits.

  1. Count the letters. Same count? Compare the letters one by one.
  2. Same letters, new order? It is a rearrangement. Mark where each letter went.
  3. Read the code backwards. If you see the word, reversal is part of the rule.
  4. Different letters? Write the positions (A = 1 … Z = 26). Subtract slot by slot.

A constant difference like +2 means a shift. Two positions that add up to 27 mean opposite letters.

Example: HOME → IPNF. The letters are different. H→I, O→P, M→N, E→F are each +1. The rule is a +1 shift.

04

Rearrangement: same letters, new order

The letters stay the same. Only their places change. Four orders come up again and again.

  • Pair swap: swap the letters two at a time. PLANET → PL AN ET → LP NA TE → LPNATE.
  • Halves reversed: split the word in two. Write each half backwards. MONKEY → MON KEY → NOMYEK.
  • Halves swapped: write the second half first. MONKEY → KEYMON.
  • First–last swap: only the end letters change places. LEMON → NEMOL.

In a word with an odd number of letters, the middle letter usually stays in place. In a pair swap, the last letter stays.

Tip: Look at the first two letters of the code. They usually tell you which order was used.

05

Two-step rules

Some codes use two simple rules one after the other. Find the first rule, then see what is still different.

  • Vowels one way, consonants another. Vowels (A, E, I, O, U) move +1 and consonants move −1. BASKET → ABRJFS.
  • Opposite, then shift. BAD → opposite YZW → +1 → ZAX.
  • Rearrange, then shift. First swap the pairs, then move every letter +1.

Watch: Do the steps in the same order as the sample. With a changing shift, a different order gives a different code.

06

Alphabet facts to learn once

  • EJOTY: E = 5, J = 10, O = 15, T = 20, Y = 25. Every letter is at most 2 steps from one of these.
  • Opposite pairs: A-Z, B-Y, C-X, D-W, E-V, F-U, G-T, H-S, I-R, J-Q, K-P, L-O, M-N. Each pair adds up to 27.
  • Wrap-around: after Z comes A again. So Y + 3 = B.
07

Question types you will see

Each type: how to recognise it, the method step by step, and one question to try.

Type 1common3 practice Q

Pair swap (neighbouring letters change places)

How to spot it:

The code has the same letters as the word. Letters 1-2, 3-4, 5-6 have changed places.

Method
  1. Split the word into pairs from the left.

  2. Write each pair backwards.

  3. If one letter is left over at the end, keep it as it is.

Why it works:

No letter changes, only the order, so checking pairs is enough.

Try this

In a certain code language, BRIGHT is written as RBGITH. How will SILVER be written in that language?

Show solution
  1. BRIGHT → BR IG HT → RB GI TH. So the rule is a pair swap.

  2. SILVER → SI LV ER.

  3. Swap each pair: IS VL RE.

Answer

ISVLRE

Type 2common3 practice Q

Halves reversed (each half written backwards)

How to spot it:

The code has the same letters. The first half and the second half each appear backwards.

Method
  1. Split the word into two equal halves.

  2. In an odd word, keep the middle letter in place.

  3. Write each half backwards.

  4. Add any extra shift only if the sample shows one.

Why it works:

Reading each half of the sample backwards gives back the original halves.

Try this

In a certain code language, CANDLE is written as NACELD. How will WINDOW be written in that language?

Show solution
  1. CANDLE → CAN DLE → NAC ELD. Each half is reversed.

  2. WINDOW → WIN DOW.

  3. Reverse each half: NIW WOD.

Answer

NIWWOD

Type 3occasional2 practice Q

First and last letters interchanged

How to spot it:

The first letter of the word is at the end of the code, and the last letter is at the front.

Method
  1. Swap the first and last letters.

  2. Compare the middle letters with the sample: same, or all moved by the same steps?

  3. Apply both steps to the new word.

Why it works:

The middle part tells you whether a second rule is hidden in the code.

Try this

In a certain code language, TIGER is written as RJHFT. How will HORSE be written in that language?

Show solution
  1. T and R have changed places.

  2. Middle IGE → JHF: each letter is +1.

  3. HORSE: swap H and E, and move ORS +1 to PST.

Answer

EPSTH

Type 4occasional3 practice Q

Vowels and consonants change differently

How to spot it:

The differences are not all equal. All vowels move one way, and all consonants move another way.

Method
  1. Write the difference under each letter of the sample.

  2. Group them: what happened to the vowels? What happened to the consonants?

  3. Code the new word letter by letter. First ask: vowel or consonant?

Why it works:

The rule depends on the type of letter, not on its place in the word.

Try this

In a certain code language, BASKET is written as ABRJFS. How will PENCIL be written in that language?

Show solution
  1. Vowels move +1: A→B, E→F.

  2. Consonants move −1: B→A, S→R, K→J, T→S.

  3. PENCIL: P−1, E+1, N−1, C−1, I+1, L−1.

Answer

OFMBJK

Type 5common3 practice Q

Two rules in a row (mixed coding)

How to spot it:

No single rule explains the sample. The letters are opposite and shifted, or reversed and shifted.

Method
  1. Test the simple rules first: shift, opposite, reverse.

  2. If one rule almost works, the leftover difference is the second step.

  3. Apply both steps to the new word in the same order.

Why it works:

Every mixed rule is two basic rules, one after the other.

Try this

In a certain code language, BAD is written as ZAX. How will CUP be written in that language?

Show solution
  1. Opposite of BAD is YZW. YZW +1 gives ZAX. So the rule is: opposite, then +1.

  2. Opposite of CUP is XFK.

  3. XFK +1 gives YGL.

Answer

YGL

Type 6common

Halves swapped (second half written first)

How to spot it:

The code has the same letters. The second half of the word comes first, unchanged.

Method
  1. Split the word into two halves.

  2. Write the second half first, then the first half.

  3. In an odd word, keep the middle letter in the middle.

Why it works:

Each half keeps its own letter order, so the two halves are easy to spot in the code.

Try this

In a certain code language, SILVER is written as VERSIL. How will MARKET be written in that language?

Show solution
  1. SILVER → SIL VER → VER SIL. The halves are swapped.

  2. MARKET → MAR KET.

  3. Write KET first, then MAR.

Answer

KETMAR

08

Shortcuts that save time

⚡ Find the difference list first

Write the sample word above its code. Subtract the positions slot by slot. The list of differences is the rule. Apply the same list to the new word.

Example

If CAT is written as FDW, how is DOG written?

Show solution
  1. C→F, A→D, T→W: each is +3.

  2. Apply +3 to DOG: D→G, O→R, G→J.

Answer

GRJ

09

Mistakes to avoid

Where most students lose marks on this subtopic.

Mistake 01

Using a different shift for the new word than the sample showed.

Apply exactly the rule you found on the sample pair.

Mistake 02

Checking only one letter and trusting the rule.

Check at least three letters. A rising shift looks flat on one letter.

Mistake 03

Taking Y + 3 as 'out of the alphabet'.

Wrap around after Z: Y + 3 = B.

Mistake 04

Doing a two-step rule in a different order from the sample.

Copy the order of the steps from the sample.

Mistake 05

Trying hard rules before the easy checks.

Check rearrangement and backwards reading first. They take seconds.

10

Quick revision

Read this the night before the exam.

  • Same letters, new order → rearrangement (pair swap, halves, first–last).

  • Different letters → subtract positions: a constant = shift, a sum of 27 = opposite letters.

  • Read the code backwards before trying anything complicated.

  • EJOTY: E = 5, J = 10, O = 15, T = 20, Y = 25.

  • Two-step rules: same steps, same order as the sample.

  • Check the rule on three letters before coding the new word.

11

Practice: 14 questions

Sets of 10, mixed across the question types above. Every answer has a step-by-step explanation.

Topic test · 10 questions

Suggested time 7 min · wrong answers go to your mistake notebook automatically.