← Aptitude hub · Logical Reasoning & Problem Solving
Coding Decoding Practice
Learn the concept, see a worked example, then practice untimed with instant feedback.
Coding-Decoding — the concept
First compare each example letter or word with its code to identify one consistent rule. Common letter rules include a fixed Caesar shift, different shifts by position, reverse-alphabet values where A = 26 and Z = 1, and ordinary alphabet positions where A = 1 and Z = 26.
Other questions use squares or cubes of positions, interchange neighbouring letters, reverse the entire word, move vowels and consonants differently, count letters, or replace words through common-word elimination. In sentence coding, compare pairs of sentences: the common word and common code reveal each other.
Do not finalise a rule from one example when several rules could fit; test it against every supplied example. Preserve order, repeated letters, spacing and any separators exactly.
After finding the rule, encode or decode one character at a time. Most errors come from applying the rule correctly to the first few letters and then rushing the remaining letters.
Watch out for
- Assuming a shift code when the question is actually using alphabet positions.
- Ignoring repeated letters or applying different rules to identical letters.
- Using only one example even when another example can eliminate a false rule.
Worked example
In a certain code, CAT is written as 3120 using the alphabet positions of its letters. How is DOG written?
4157
4158
4167
5147
Solution: C = 3, A = 1 and T = 20, giving 3120.
D = 4, O = 15 and G = 7.
Joining the positions gives 4157.
Log in to practice with instant feedback.