Coding & Decoding Aptitude Questions with Solutions
42 Coding & Decoding questions with hints, worked solutions and time targets — 17 easy · 18 medium · 7 hard. Letter shifts, substitutions and pattern codes.
- Section: Logical Reasoning
- Questions: 42
- By difficulty: 17 easy · 18 medium · 7 hard
- Cost: Free, unlimited on every plan
Letter shifts, substitutions and pattern codes.
Coding & Decoding: the essentials
- Positions: A = 1 to Z = 26, with landmarks E 5, J 10, O 15, T 20, Y 25. The opposite of position n is 27 − n: A and Z, M and N.
- Write the shift under each letter of the example before guessing. A constant shift (+1, +2, −1) is the commonest code; Z + 1 wraps to A.
- If the shift is not constant, check whether it grows with position (+1, +2, +3) or alternates in sign.
- If no shift fits, reverse the word and compare again: reversal plus a small shift is the usual two-step code.
- Number codes are usually the sum of the letter positions, that sum plus a constant, the word's length, or a rule such as n(n + 1). Confirm the rule on every example.
- Letter-to-digit tables: build the full mapping from the examples, check repeated letters for consistency, and make sure the answer has one symbol per letter.
- Sentence codes: intersect the code words of two sentences, and intersect their meanings.
- Swapped symbols: rewrite the whole expression first, then apply BODMAS — × and ÷ before + and −, left to right.
- Decoding: apply the shift in reverse, then re-encode to check.
- Positions in the alphabet: the kth letter to the left of the nth is at n − k; the kth from the right is the (27 − k)th.
Example: MAP → OCR is a shift of +2 on every letter, so SUN → UWP.
Questions
- If CAT is DBU Easy
In a certain code, CAT is written as DBU. How is DOG written in that code? - Shifted, then reversed Medium
If BOOK is coded as LPPC, how is PEN coded? - Words coded as numbers Medium
If RED is coded as 27 and BLUE as 40, how is PINK coded? (A = 1, B = 2, …, Z = 26.) - A substitution language Medium
In a certain language: 'pit na som' means 'bring me water' 'som lat tuk' means 'water is cold' Which word means 'water'? - Shift by position Hard
If ACE is coded as BEH, how is BUS coded? - If TEACHER is VGCEJGT Medium
In a certain code TEACHER is written as VGCEJGT. How is CHILDREN written in that code? - If MADRAS is NBESBT Easy
If MADRAS is coded as NBESBT, how is BOMBAY coded? - If FRIEND is HTKGPF Easy
If FRIEND is coded as HTKGPF, how is CANDLE coded? - If SISTER is RHRSDQ Easy
In a certain code SISTER is written as RHRSDQ. How is UNCLE written? - If DELHI is CDKGH Easy
If DELHI is coded as CDKGH, how is MUMBAI coded? - If MOUSE is PRXVH Easy
If MOUSE is coded as PRXVH, how is SHIFT coded? - If ROAD is URDG Easy
If ROAD is written as URDG, how is SWAN written? - If SAND is TBOE Easy
If the code for SAND is TBOE, what is the code for BIRD? - If DOG is FQI Easy
If DOG is coded as FQI, how is CAT coded? - A backward shift on a longer word Medium
If TRIPPLE is written as SQHOOKD, how is DISPOSE written? - If NOIDA is OPJEB Easy
If NOIDA is coded as OPJEB, how is DELHI coded? - A shift that grows with position Hard
If HOUSE is coded as IQXWJ, how is TABLE coded? - Reversed, then shifted Hard
If COMPUTER is written as RFUVQNPC, how is MEDICINE written? - Words coded by letter sums Medium
If CAT = 24 and DOG = 26, what is the code for PIG? (A = 1, B = 2, …, Z = 26.) - A code based on length Medium
If REASON is coded as 5 and BELIEVED as 7, what is the code for GOVERNMENT? - Letters standing for digits Hard
In a code, ROSE is written as 6821, CHAIR as 73456 and PREACH as 961473. How is SEARCH written? - Another digit substitution Medium
If PALE is coded as 2134 and EARTH as 41590, how is PEARL coded? - Repeated letters in a code Hard
If RIPPLE is written as 613382 and LIFE as 8192, how is PILLER written? - Two words, one table Hard
If PAINT is coded as 74128 and EXCEL as 93596, how is ACCEPT coded? - Codes from two short words Medium
If LOSE is coded as 1357 and GAIN as 2468, how is SLAIN coded? - A substitution language: good boys play Medium
In a certain language: 'nik ka pa' means 'you are good' 'ka la ma' means 'good boys play' 'pa ni ma' means 'you play cricket' Which word means 'play'? - Which word means 'good' Easy
In a certain language: 'nik ka pa' means 'you are good' 'ka la ma' means 'good boys play' Which word means 'good'? - Swapped arithmetic symbols Medium
If '+' means '÷', '÷' means '−', '−' means '×' and '×' means '+', what is the value of: 12 + 6 ÷ 3 − 2 × 8 - Letters standing for operations Medium
If P denotes ÷, Q denotes ×, R denotes + and S denotes −, what is the value of: 18 Q 12 P 4 R 5 S 6 - Another symbol swap Hard
If '×' means '+', '+' means '÷', '−' means '×' and '÷' means '−', what is the value of: 6 × 4 + 2 − 3 ÷ 5 - A numeric code rule Medium
If 5 = 30, 6 = 42 and 7 = 56, then 8 = ? - A smaller numeric code Easy
If 2 = 6, 3 = 12 and 4 = 20, then 5 = ? - Letters with odd values Medium
If A = 1, B = 3, C = 5 and so on, what is the code for I? - Adding letter positions Easy
If A = 1, B = 2, C = 3 and so on, what is the value of CAB? - Letters in alphabetical order Easy
If the letters of the word MASTER are arranged in alphabetical order, which letter is fourth? - A simple reversal Easy
If WORLD is coded as DLROW, how is INDIA coded? - Opposite letters of the alphabet Medium
If ACT is coded as ZXG, how is BAD coded? (Each letter is replaced by its opposite in the alphabet.) - First half forward, second half back Easy
If BOARD is coded as CPBSE, how is CHAIR coded? - Decoding back to a word Medium
In a certain code PLANT is written as QMBOU. What does TFBU stand for? - Decoding a +2 shift Medium
In a code where LIGHT is written as NKIJV, what does HQQF stand for? - Position within the alphabet Medium
Which letter is the eighth to the left of the twentieth letter from the left of the alphabet? - Counting from the right Easy
Which is the seventh letter from the right in the English alphabet?
Placement tests that ask coding & decoding
- Thirty-Minute Sprint CodeKairo
- Full-Length Aptitude Paper CodeKairo
- TCS NQT — Foundation TCS
- TCS NQT — Foundation + Advanced TCS
- Infosys SE / DSE — Aptitude Infosys
- Wipro NLTH — Aptitude Wipro
- Accenture — Cognitive & Technical Accenture
- Cognizant GenC — Aptitude Cognizant
- HCLTech — Written Test HCLTech
- Tech Mahindra — Aptitude & Technical Tech Mahindra
- Amazon — SDE Online Assessment Amazon
- LTIMindtree — Online Assessment LTIMindtree
- Mphasis — AMCAT Assessment Mphasis
- Virtusa — Online Test & Coder Challenge Virtusa
- Goldman Sachs — Aptitude Test Goldman Sachs
- Deloitte — Online Assessment Deloitte
- Adobe — Campus Aptitude Adobe
- ZS Associates — Aptitude ZS Associates
- Morgan Stanley — Aptitude & Technical Morgan Stanley
- Oracle — Aptitude & Verbal Oracle
- Zoho — Round 1 Zoho