🚆 RRB JE Complete Notes

Coding Basics

Start MCQ Practice →

Coding Basics

Subject: Reasoning - Verbal Reasoning Chapter: Coding Basics Topic: Letter coding, number coding, word coding, substitution coding and code deciphering

1. Introduction

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.

2. Types of Coding

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.

3. Solved Examples

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.

4. Advanced Coding Strategies

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.

5. Quick Revision Tables

Table 1: Common Coding Rules

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

Table 2: Opposite Letter Pairs

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

6. Mind Map

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]

7. Important Diagrams (SVG)

The following diagrams illustrate the letter shifting rule and the opposite letter rule.

Letter Shifting Coding CAT is coded as DBU Each letter shifts one step forward C to D, A to B, T to U Positions: 3 to 4, 1 to 2, 20 to 21 Apply same rule to DOG D to E, O to P, G to H = EPH Compare positions letter by letter. The difference gives the shift value. Apply the rule in the same direction. Golden Rule Find the shift by comparing the given word with its code.

Opposite Letter Coding BOY is coded as YLB Each letter is replaced by its opposite B to Y, O to L, Y to B Positions add to 27 for each pair Apply same rule to GIRL G to T, I to R, R to I, L to O = TRIO Opposite positions always add to 27. Memorise the opposite pairs A-Z to M-N. Opposite coding appears frequently in exams. Golden Rule Forward position plus reverse position always equals 27.

Common Mistakes

  1. Candidates apply the rule in the wrong direction, decoding instead of coding.
  2. A frequent error is to shift letters by the wrong number of steps because the difference was miscounted.
  3. Students often forget the opposite letter table and guess the code instead of applying the rule.
  4. Some aspirants apply a uniform shift when the rule is an alternating shift.
  5. Many candidates fail to test the rule on all letters of the given word before applying it.
  6. A common mistake is to code the letters correctly but write them in the wrong order.
  7. Some candidates spend too long on a single coding question and lose time for easier questions.

Exam Tips

  1. Write the given word and its code in two rows and compare the positions letter by letter.
  2. Test the rule on every letter of the given word before applying it to the new word.
  3. Memorise the opposite letter pairs, because opposite coding is asked frequently.
  4. Apply the rule in the same direction as the example, whether coding or decoding.
  5. Use the options to eliminate wrong answers after coding the first one or two letters.
  6. Practise at least ten coding questions daily to build familiarity with the common rules.
  7. In the exam, confirm the code completely before marking, since a single wrong letter changes the answer.

Conclusion

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.