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?
- EPH
- EOH
- EPG
- 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?
- 28
- 25
- 27
- 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?
- 32845
- 32484
- 32485
- 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
- In a certain code, CAT is written as DBU. How is DOG written in that code?
- If BOOK is coded as 2-15-15-11, how is DESK coded?
- In a code, each letter is replaced by the letter in the same position from the…
- If TABLE is written as ELBAT, how is CHAIR written in the same code?
- In a certain code, MANGO is written as KYLEM. How is APPLE written in that code?
- If CAT = 24 in a code, what is DOG in the same code?
- In a code, PRINT is written as QTLRY. How is PAPER written in that code?
- In a code language, 'pit lo mak' means 'red hot tea', 'lo sun dar' means 'hot…
- If MOBILE is written as OMIBEL, how is SCREEN written in the same code?
- In a code, every vowel is replaced by the next letter of the alphabet and…
- If PLANET is written as ALPTEN, how is SAFETY written in the same code?
- Study the coding scheme: Letter: A B C D E F G H Digit: 5 3 8 1 9 2 7 4…
- Study the coding scheme: Letter: A B C D E F G H Digit: 5 3 8 1 9 2 7 4…
- In a code, WINTER is written as XHOSFQ. Which word is written as TOSHOF in…
- In a certain code, CAT is written as 72 and BIRD as 132. Using the same rule…
- In a certain code, SUN is written as UWP. How is MOON written in that code?
- In a code, A = 26, B = 25, C = 24 and so on up to Z = 1, so CAB is written as…
- If 'sky' is called 'sea', 'sea' is called 'water', 'water' is called 'air'…
- If ROAD is coded as 18-15-1-4, which word is coded as 19-8-9-16?
- In a certain code, LAMP is written as KZLO. How is DESK written in that code?
- In a certain code, BOAT is written as UBPC. How is FISH written in that code?
- In a code language, 'ka la ma' means 'Ravi eats mango', 'ma pa ta' means…
- In a certain code, CLOUD is written as DKPTE. How is KNIGHT written in that…
- In a certain code, ACE is written as 15 and BAD as 8. What is the code for BEG?
- If TEAM is written as 4917 and MEAT as 7914, how is MATE written in that code?
- In a certain code, CAT is written as DCW. How is BOOK written in that code?
- In a code, each letter is replaced by its opposite letter in the alphabet…
- In a certain code, MUMBAI is written as JRJYXF. How is CHENNAI written in that…
- Study the coding scheme: Letter: A E K L M R S T Digit: 3 7 1 6 2 9 4 8…
- In a certain code, ROSE is written as 6821 and CHAIR as 73456. How is SEARCH…
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
- Number Series: Find the rule and the missing term.
- Letter Series: Alphabet patterns and skips.
- Blood Relations: Family trees from a few clues.
- Direction Sense: Turns, distances and final positions.
- Seating Arrangement: Linear and circular arrangements.
- Syllogisms: Which conclusions follow from the statements.
- Analogies: Word, number and letter relationships.
- Odd One Out: Spot the item that breaks the pattern.
- Clocks & Calendars: Hand angles, odd days and day-of-week.
- Statements & Conclusions: Critical reasoning on short arguments.
- Data Sufficiency: Decide what is enough to answer.
- Puzzles: Multi-clue logic grids and scheduling.
Other subjects
- Quantitative Aptitude: Arithmetic, percentages, time and work, speed, probability and data interpretation: the numerical section of every fresher test.
- Verbal Ability: Vocabulary, grammar, reading comprehension and sentence order: tested in nearly every IT services hiring exam.
- Technical & Programming: CS fundamentals, output prediction and pseudo-code: the technical MCQ round for IT roles.
- Python: Python quizzes by topic, from types and strings to classes and generators: output prediction and interview concepts.
- SQL: SQL quizzes by topic, from SELECT and joins to window functions: query output and concepts for analyst and developer roles.
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