Coding‑Decoding: Study Notes for the APO Exam
(Reasoning Ability – Subject: Coding‑Decoding)
Definition
Coding (also called “cipher” or “key”) is a systematic way of replacing one set of symbols (letters, numbers, or shapes) with another.
Decoding is the reverse process – using the given key to recover the original message.
1. Simple Explanation
| Step | What to Do | Example |
|---|---|---|
| 1. Observe the pattern | Look for a regular transformation between symbols in the given pairs. | “A → 1, B → 2, C → 3 …” |
| 2. Identify the key | It could be a shift, a substitution, a reversal, a numeric mapping, or a combination. | “L → 12, M → 13” (shift of +11) |
| 3. Apply the key | Convert the coded word or number into the decoded form. | “12 13 14 → L M N” |
| 4. Verify | Check that the result makes sense (e.g., is a real word or a logical number). | “L M N” → “LMN” (makes sense as a word or abbreviation) |
Tip: In exam questions, the key is usually simple (shift by a fixed number, reversal, digit substitution). Complex cryptography is rarely used.
2. Key Points to Remember
| Category | Typical Transformation | How to Spot It |
|---|---|---|
| Alphabetic Shift (Caesar Cipher) | Each letter replaced by another a fixed number of positions away. | “ABC → DEF” (shift +3). |
| Alphabetic Substitution | Each letter replaced by a different, not necessarily systematic, letter. | “A → Q, B → Z, C → L, …” |
| Reversal (Mirror) Coding | The whole word is reversed or each letter is mirrored in the alphabet. | “HELLO → OLLEH” (reverse). |
| Numeric Coding | Numbers represent letters (1=A, 2=B, …) or vice‑versa. | “2 5 12 12 15 → B E L L O” |
| Mixed Code | Combination of letters and numbers, or a pattern that alternates. | “A1 B2 C3 → 1A 2B 3C” |
| Pattern‑Based (e.g., odd/even, prime positions) | Positions in the word follow a rule. | “A B C D → D B C A” (reverse even/odd). |
| Compound Code | Two or more simple codes used together. | “A → 1, 1 → A” (double substitution). |
Common Mistake: Assuming the code is the same for all pairs. Always verify with multiple pairs.
3. Worked Example (Full Solution)
Question
The following coded words correspond to the decoded words. Find the missing code for “MANGO”.
| Code | Decoded |
|---|---|
| 1A 2B 3C | ABC |
| 4D 5E 6F | DEF |
| 7G 8H 9I | GHI |
| 10J 11K 12L | JKL |
Find the code for MANGO.
Step‑by‑Step Solution
| Step | Observation | Explanation |
|---|---|---|
| 1 | Pattern in the codes | Each pair consists of a number followed by a letter: 1A, 2B, … 12L. |
| 2 | Number sequence | Numbers are consecutive: 1, 2, 3, …, 12. |
| 3 | Letter sequence | Letters are consecutive in the alphabet: A, B, C, …, L. |
| 4 | Mapping rule | The i‑th word’s letters map to the i‑th letter in the alphabet and the corresponding number equals the position of the decoded letter in the alphabet. |
| 5 | Apply to “MANGO” | |
| - M → 13 (since M is the 13th letter) | ||
| - A → 1 | ||
| - N → 14 | ||
| - G → 7 | ||
| - O → 15 | ||
| So the code is: 13M 1A 14N 7G 15O. |
Answer:
13M 1A 14N 7G 15O
Quick Check
- Numbers are indeed the positions of the letters.
- The order of letters matches the decoded word.
4. Quick Revision Summary
| What to Review | How to Practice |
|---|---|
| Alphabetic Shift | Take a list of words, shift each letter by +2, +5, –3 and write the coded forms. |
| Letter‑Number Mapping | Write the alphabet with numbers 1–26. Practice converting words to numbers and back. |
| Reversal Coding | Reverse words and check if they still make sense. |
| Mixed Codes | Create a code that alternates between letter and number. Decode it. |
| Pattern Recognition | Look at practice sets with multiple pairs; identify the rule before decoding. |
| Time Management | Allocate 5–7 minutes per coding‑decoding question; practice under timed conditions. |
Final Tips for the APO Exam
- Read the entire set first – often the key is revealed early.
- Use elimination – try the most common codes (shift, substitution, reversal) before moving to complex ones.
- Write down your reasoning – this helps catch mistakes.
- Check consistency – if a rule works for one pair but not another, revisit your assumption.
- Stay calm – coding‑decoding is largely pattern recognition; confidence helps.
Good luck!