Coding–Decoding questions and answers

Letter shifts, substitutions and word codes. Practise coding–decoding questions from the logical reasoning section of placement tests, with a worked explanation after every answer. Practice is free and needs no sign-up.

Sample coding–decoding questions with worked answers

Question 1

In a certain code, CAT is written as DBU. How is DOG written in that code?

  1. EPH
  2. EOH
  3. EPG
  4. CNF

Answer: A. EPH

Explanation: Each letter is replaced by the next letter of the alphabet: D→E, O→P, G→H, giving EPH.

Question 2

If CAT = 24 in a code, what is DOG in the same code?

  1. 28
  2. 25
  3. 27
  4. 26

Answer: D. 26

Explanation: CAT = 3 + 1 + 20 = 24, the sum of alphabet positions. DOG = 4 + 15 + 7 = 26.

Question 3

Study the coding scheme:
Letter: A B C D E F G H
Digit: 5 3 8 1 9 2 7 4
Conditions:
(i) If the first letter is a vowel and the last letter is a consonant, their codes are interchanged.
(ii) If both the first and the last letters are vowels, both are coded as #.
(iii) If neither condition applies, each letter takes its own digit.
What is the code for AFHCB?

  1. 32845
  2. 32484
  3. 32485
  4. 52483

Answer: C. 32485

Explanation: A is a vowel and B is a consonant, so condition (i) applies. Plain codes are A=5, F=2, H=4, C=8, B=3; swapping the first and last gives 3 2 4 8 5.

All 30 coding–decoding questions with answers

Coding–Decoding: common questions

What are coding–decoding questions?

Letter shifts, substitutions and word codes. They appear in the logical reasoning section of many placement tests.

Where can I practise coding–decoding questions with answers for free?

Right here on LogicWiz Exams. Every coding–decoding question has a worked explanation after you answer. Practice is free and needs no sign-up.

How should I practise coding–decoding?

Start with easy questions, then move to medium and hard. Read the explanation after each answer, and come back to the ones you missed.

Start practising

On this page you can start a fresh set of coding–decoding questions, choose easy, medium or hard, and time yourself if you want to. Or practise the whole subject: Logical Reasoning practice.

More logical reasoning topics

Other subjects

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge · Test from a job description · LogicWiz Open: free team quiz · Free interview prep