TECHNOLOGIESTieInn Technologies

Coding-decoding

Coding-decoding: substitution codes

5 min read · 8 practice questions · free

Useful for:IT testsBanksSSC / RailwaysTNPSC

What it is

Words are swapped for other words: "If 'red' is called 'yellow', 'yellow' is called 'green', 'green' is called 'blue'… what is the colour of grass?" The question tests careful reading more than anything else.

How to solve it

  1. Work out the real answer first, ignoring the code. Grass is green.
  2. Look up what that real word is called in the code. "'green' is called 'blue'".
  3. The answer is the code name: blue.

Tips and shortcuts

  • Don't follow the chain further than one step. 'green' is called 'blue'; it doesn't matter what 'blue' is called.
  • The real answer is usually a trap option. Green is offered, but the code changes it.
  • Write the pairs as arrows: red → yellow, yellow → green, green → blue.
  • The same idea works for any category: "if a cow is called a horse, what gives milk?" → horse.

Solved examples

Example 1 (easy)

If 'red' is called 'yellow', 'yellow' is called 'green', 'green' is called 'blue' and 'blue' is called 'red', what is the colour of grass?

Grass is green; 'green' is called blue.

Example 2 (medium)

If 'white' is called 'black', 'black' is called 'red', 'red' is called 'green', what is the colour of milk?

Milk is white; 'white' is called black.

Example 3 (hard)

If 'blue' is called 'white', 'white' is called 'yellow', 'yellow' is called 'red', 'red' is called 'green', 'green' is called 'black' and 'black' is called 'blue', what is the colour of blood?

Blood is red; 'red' is called green.

Example 4 (medium): animals

If a cow is called a horse, a horse a dog, and a dog a cat, which animal guards a house?

A dog guards a house; a dog is called a cat.

Example 5 (hard): the trap

In Example 1, why isn't the answer 'red' (what 'blue' is called)?

Because only one step is needed: the real colour is green, and 'green' is called blue. Following the chain further answers a different question.

Try it

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

  1. Question 1easy

    If 'green' is called 'white', 'white' is called 'black', 'black' is called 'blue', 'blue' is called 'green', what is the colour of grass?

  2. Question 2easy

    If 'yellow' is called 'red', 'red' is called 'white', 'white' is called 'blue', 'blue' is called 'yellow', what is the colour of milk?

  3. Question 3easy

    If 'blue' is called 'red', 'red' is called 'black', 'black' is called 'yellow', 'yellow' is called 'blue', what is the colour of coal?

  4. Question 4medium

    If 'yellow' is called 'green', 'green' is called 'blue', 'blue' is called 'white', 'white' is called 'red', 'red' is called 'black', 'black' is called 'yellow', what is the colour of milk?

  5. Question 5medium

    If 'green' is called 'red', 'red' is called 'black', 'black' is called 'white', 'white' is called 'yellow', 'yellow' is called 'blue', 'blue' is called 'green', what is the colour of grass?

  6. Question 6medium

    If 'red' is called 'blue', 'blue' is called 'yellow', 'yellow' is called 'white', 'white' is called 'black', 'black' is called 'green', 'green' is called 'red', what is the colour of a clear sky?

  7. Question 7hard

    If 'yellow' is called 'black', 'black' is called 'blue', 'blue' is called 'white', 'white' is called 'green', 'green' is called 'red', 'red' is called 'yellow', what is the colour of blood?

  8. Question 8hard

    If 'red' is called 'yellow', 'yellow' is called 'blue', 'blue' is called 'white', 'white' is called 'green', 'green' is called 'black', 'black' is called 'red', what is the colour of milk?

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 →