Autocoder

Coding Decoding Aptitude Questions with Answers

Last updated 2026-11-19

In coding-decoding, a word, number or message is converted to another form using a hidden rule, and you apply the same rule to a new item. The rule may shift letters forward or backward, reverse the alphabet, assign values to letters, or swap the meanings of words. These questions reward careful comparison rather than brilliance: the answer is always sitting in the example you are given.

This page lists the common rule types, then 13 questions from easy to hard with full workings. It pairs well with letter series practice, since both rely on alphabet positions. For test-day strategy, see how to crack a logical reasoning test.

Rule types you will meet

How to find the rule

Line up the original and coded forms, write the position numbers under each letter and compute the difference letter by letter. If the differences are the same, you have a fixed shift. If they differ in a regular way, you have a changing shift. If the code has a different length, think of sums, counts or deletion of letters.

For multi-statement word codes, find a word that appears in two statements and match it with the code that also appears in both. Repeat for the rest. The solution is unique when each word can be isolated this way.

Common slips

Forgetting to wrap around past Z is the most frequent error: Y plus 4 is C, not a symbol after Z. The second is applying the rule to the wrong direction: read whether the question asks you to encode a word or decode a code, since the shifts reverse when you decode.

Coding Decoding Aptitude Questions with Answers: questions with worked answers

  1. 1

    If CAT is coded as DBU, how is DOG coded in the same way?

    easy

    Each letter moves one place forward: C to D, A to B, T to U. So D to E, O to P, G to H. Answer: EPH.

  2. 2

    In a certain code, CHAIR is written as FKDLU. How is TABLE written?

    easy

    Every letter is shifted three places forward: C to F, H to K, A to D, I to L, R to U. For TABLE: T to W, A to D, B to E, L to O, E to H. Answer: WDEOH.

  3. 3

    If each letter is replaced by its opposite in the alphabet (A with Z, B with Y), how is DOG coded?

    easy

    The opposite of position n is 27 - n. D(4) gives 23, which is W. O(15) gives 12, which is L. G(7) gives 20, which is T. Answer: WLT.

  4. 4

    If A=1, B=2, ..., Z=26, what is the sum of the letter values in LOGIC?

    easy

    L=12, O=15, G=7, I=9, C=3. The sum is 12 + 15 + 7 + 9 + 3 = 46. Answer: 46.

  5. 5

    In a code, 'pen book' is 'ma ta', 'book table' is 'ta ra', and 'table red' is 'ra di'. What is the code for 'pen'?

    easy

    'Book' appears in the first two statements and 'ta' appears in both codes, so book is ta. 'Pen' is the other word in the first statement, and the other code there is ma. Answer: ma.

  6. 6

    If BOOK is written as CQRO, how is NOTE written in that code?

    medium

    Compare BOOK with CQRO. B to C is +1, O to Q is +2, O to R is +3, K to O is +4. Apply +1, +2, +3, +4 to NOTE: N to O, O to Q, T to W, E to I. Answer: OQWI.

  7. 7

    In a certain code ROAD is written as SQDH. How is CITY written?

    medium

    The shifts for ROAD are R to S (+1), O to Q (+2), A to D (+3), D to H (+4). Apply to CITY: C to D (+1), I to K (+2), T to W (+3), Y(25) + 4 = 29, which wraps to 3, so C. Answer: DKWC.

  8. 8

    If vowels are replaced by the next letter in the alphabet and consonants stay unchanged, how is EDUCATION coded?

    medium

    The vowels E, U, A, I, O become F, V, B, J, P. The consonants D, C, T, N are unchanged. Reading in order: E to F, D, U to V, C, A to B, T, I to J, O to P, N. Answer: FDVCBTJPN.

  9. 9

    If A=1, B=2, ... Z=26, and RED has the value 27, what is the value of GREEN?

    medium

    Check RED: R=18, E=5, D=4, total 27, consistent. For GREEN: G=7, R=18, E=5, E=5, N=14. The sum is 7 + 18 + 5 + 5 + 14 = 49. Answer: 49.

  10. 10

    In a code, '123' means 'bright blue sky', '145' means 'blue ocean wide' and '256' means 'wide sky above'. Which digit stands for 'wide'?

    medium

    Blue is in the first two statements, whose common digit is 1, so blue is 1. Wide is in the second and third statements, whose common digit is 5, so wide is 5. Check that sky (first and third) matches digit 2, which it does. Answer: 5.

  11. 11

    In a certain code FRIEND is written as HUMJTK. How is CANDLE written?

    hard

    Compare the shifts: F to H +2, R to U +3, I to M +4, E to J +5, N to T +6, D to K +7. For CANDLE apply +2 to +7: C to E, A to D, N to R, D to I, L to R, E to L. Answer: EDRIRL.

  12. 12

    If 'cloud' is called 'rain', 'rain' is called 'river', 'river' is called 'sea' and 'sea' is called 'sky', where do fish live?

    hard

    Fish live in the sea. In this code the word sea is replaced by sky, so the answer in the new vocabulary is sky. Answer: sky.

  13. 13

    If the symbols are swapped so that + means x, x means -, - means division and the division sign means +, what is the value of 12 ÷ 4 + 3 - 6 x 2?

    hard

    Replace each symbol by its real meaning: ÷ becomes +, + becomes x, - becomes division, x becomes -. The expression turns into 12 + 4 x 3 / 6 - 2. Following BODMAS: 4 x 3 = 12, 12 / 6 = 2, then 12 + 2 - 2 = 12. Answer: 12.

Frequently asked questions

How do I decide if a shift is forward or backward?

Subtract the position of the original letter from that of the coded letter. A positive result is forward, a negative one is backward, and a result below -13 can also be read as forward with wrap-around.

What if the coded word is shorter than the original?

Look for a rule that deletes letters, such as removing vowels, or one that replaces the word with a count or sum.

Are the letter values always A=1?

Usually, but check the question. Some questions assign reversed values, where Z=1, and some give a custom table.

How can I speed up multi-statement word codes?

Find the word common to two statements and the code common to the same two. This isolates one word at a time.

Related guides

More in Aptitude Questions for Placements

See all in this section