Subject: Reasoning - Verbal Reasoning Chapter: Coding Basics Topic: Letter coding, number coding, word coding, substitution coding and code deciphering
Coding is one of the most important topics in the RRB JE reasoning section, and it appears in several forms. In a coding question, a word or a message is given together with its code, and the candidate must discover the rule used to form the code. Once the rule is known, the same rule is applied to another word or message to find its code, or the code of a word is decoded back to the original word.
The most common coding rules are based on the alphabet positions. A letter may be replaced by the letter that comes a fixed number of steps ahead or behind it, by its opposite letter, by its position number, or by a combination of these. Some codes are based on the digits of the positions, and some are based on the reversal of the word.
In this chapter we will study the main types of coding, learn the method of discovering the coding rule, and solve many examples. The key skill is to compare the given word with its code letter by letter, identify the rule, and then apply the same rule consistently to the new word.
The letter shifting coding replaces each letter with another letter a fixed number of steps ahead or behind. For example, if CAT is coded as DBU, each letter advances by one position. If a word is coded by shifting three steps back, then CAT would be coded as ZXQ.
The opposite letter coding replaces each letter with its opposite letter, using the rule that opposite positions add to 27. For example, if B is coded as Y, then the word BOY would be coded as YLB.
The number coding replaces each letter with its position number. For example, if CAT is coded as 3-1-20, then the positions of the letters C, A and T are written as the code.
The reversal coding reverses the letters of the word. For example, if CAT is coded as TAC, the word DOG would be coded as GOD.
The substitution coding replaces each letter with a specific different letter without a regular pattern. For example, if the code declares that A is coded as Z, B as Y, and C as X, the candidate uses this table directly.
The word coding codes a whole word using the letters of another word. For example, if the code of MAN is given and the code of PEN is asked, the candidate must use the pattern from the example.
Let us discover coding rules and apply them.
Example 1: If CAT is coded as DBU, then how is DOG coded?
(A) EPH (B) EPG (C) FPH (D) EQH
Each letter advances by one position, so C becomes D, A becomes B, and T becomes U. Applying the same rule to DOG, D becomes E, O becomes P, and G becomes H, giving EPH. The answer is A.
Example 2: If BOY is coded as YLB, then how is GIRL coded?
(A) TRIO (B) TRKO (C) TIOJ (D) RIOK
The code uses opposite letters, so G becomes T, I becomes R, R becomes I, and L becomes O, giving TRIO. The answer is A.
Example 3: If CAT is coded as 3-1-20, then how is DOG coded?
(A) 4-15-7 (B) 4-16-7 (C) 3-15-7 (D) 4-15-8
The code uses the position of each letter, so D is 4, O is 15, and G is 7, giving 4-15-7. The answer is A.
Example 4: If CAT is coded as TAC, then how is DOG coded?
(A) GOD (B) DGO (C) OGD (D) GDO
The code reverses the word, so DOG becomes GOD. The answer is A.
Example 5: If MAN is coded as NZM, then how is PEN coded?
(A) QDO (B) QEO (C) PFO (D) QDM
Each letter alternates between advancing one and retreating one, or the rule is that each letter is coded by the opposite with alternation. Applying the consistent rule to PEN gives QDO. The answer is A.
Example 6: If HAT is coded as IZU, then how is CAT coded?
(A) DZU (B) DBU (C) DBS (D) EZU
The rule is that the first letter advances one, the second letter retreats one, and the third advances one, giving DZU for CAT. The answer is A.
Example 7: If 12345 stands for ABCDE, then what does 21221 stand for?
(A) BABBA (B) ABBAB (C) BABAB (D) ABABA
The number 1 stands for A and 2 stands for B, so 21221 is BABBA. The answer is A.
Example 8: If the code for ROSE is 18-15-19-5, then the code for LILY is which of the following?
(A) 12-9-12-25 (B) 12-10-12-25 (C) 11-9-12-25 (D) 12-9-11-25
The code uses the positions of the letters, so L is 12, I is 9, L is 12, and Y is 25, giving 12-9-12-25. The answer is A.
The first strategy is to compare the given word and its code letter by letter. Write the word above the code and check the position of each letter. The difference between the positions reveals the rule instantly, whether it is a fixed shift, an alternating shift, or an opposite letter.
The second strategy is to check the direction of the shift. The code may advance forward, retreat backward, or alternate between the two. The candidate must confirm the rule on every letter of the given word before applying it.
The third strategy is to test the options. Once the rule is applied to the first letter, the first letters of the options can be compared, and most options are eliminated immediately. Then the second letter is checked, and so on.
The fourth strategy is to remember the opposite letter table, because opposite letter coding is very common. The sum of the positions of opposite letters is always 27.
The fifth strategy is careful application. The candidate must apply the rule in the same direction as the example. If the example codes the word into the code, the same direction must be used for the new word.
| Rule | Example Word | Code | New Example |
|---|---|---|---|
| Shift one forward | CAT | DBU | DOG -> EPH |
| Shift three backward | CAT | ZXQ | DOG -> ALD |
| Opposite letters | BOY | YLB | GIRL -> TRIO |
| Position numbers | CAT | 3-1-20 | DOG -> 4-15-7 |
| Reversal | CAT | TAC | DOG -> GOD |
| Alternating shift | HAT | IZU | CAT -> DZU |
| Letter | Opposite | Letter | Opposite |
|---|---|---|---|
| A | Z | N | M |
| B | Y | O | L |
| C | X | P | K |
| D | W | Q | J |
| E | V | R | I |
| F | U | S | H |
| G | T | T | G |
| H | S | U | F |
| I | R | V | E |
| J | Q | W | D |
| K | P | X | C |
| L | O | Y | B |
| M | N | Z | A |
flowchart TD
A[Coding Basics] --> B[Letter Shifting]
A --> C[Opposite Letters]
A --> D[Number Coding]
A --> E[Reversal Coding]
A --> F[Substitution Coding]
B --> B1[Forward shift]
B --> B2[Backward shift]
B --> B3[Alternating shift]
C --> C1[Opposite positions add to 27]
D --> D1[Position numbers]
E --> E1[Reverse the word]
F --> F1[Fixed letter table]
A --> G[Strategy]
G --> G1[Compare letter by letter]
G --> G2[Find the difference]
G --> G3[Apply in same direction]
G --> G4[Test the options]
The following diagrams illustrate the letter shifting rule and the opposite letter rule.
Coding is a high scoring and predictable topic in the RRB JE reasoning section, and it rewards candidates who compare the given word with its code carefully. In this chapter we studied the letter shifting, opposite letter, number, reversal, substitution and alternating coding rules, and we developed the strategy of comparing positions letter by letter to discover the rule. We solved worked examples that demonstrate the application of each rule in the correct direction. With the memorisation of the opposite letter table and regular practice of the common rules, a candidate can decode and encode words quickly and accurately, securing easy marks in the reasoning paper.