🚆 RRB JE Complete Notes

Coding Decoding

Start MCQ Practice →

Coding Decoding

Subject: Reasoning - Logical Reasoning Chapter: Coding Decoding Topic: Letter coding, number coding, symbol coding, substitution coding, and decoding techniques

1. Introduction

Coding is the process of converting a word, number or message into a secret form using a definite rule, and decoding is the reverse process of recovering the original information from the coded form. Questions on coding and decoding appear in almost every RRB JE CBT-1 reasoning paper because they test a candidate's ability to observe patterns, apply rules and think systematically. A one-mark coding question can be solved in seconds once the underlying rule is identified, so this is one of the most scoring topics in the entire reasoning syllabus.

In coding problems the examiner gives one or more examples of a coded word and expects the candidate to find the rule that converts the original word into the code. Once the rule is found, the same rule is applied to a new word or number to obtain its code, or the rule is reversed to decode a given message. The rules are generally based on the positions of letters in the English alphabet, on the digits of numbers, or on a combination of letters, numbers and symbols.

In this chapter we will study letter coding, number coding, mixed coding, substitution coding and the common tricks used by examiners. We will also learn how to recognise the type of coding quickly, so that the correct rule can be applied without wasting time. Regular practice is essential because the same idea can be dressed up in many different forms.

2. Letter Coding

In letter coding, each letter of a word is replaced by another letter according to a fixed rule based on the alphabet positions. The most common rule is a fixed shift: each letter moves forward or backward by a constant number of positions. For example, if A becomes C, B becomes D and C becomes E, then the rule is to move each letter two positions forward, and the word CAT becomes ECV.

The positions of the letters of the English alphabet must be memorised: A-1, B-2, C-3, D-4, E-5, F-6, G-7, H-8, I-9, J-10, K-11, L-12, M-13, N-14, O-15, P-16, Q-17, R-18, S-19, T-20, U-21, V-22, W-23, X-24, Y-25, Z-26. Many codes are based on the sum of these positions, on the difference between positions, or on the pair of letters that add up to 27, which are known as opposite letters. For example, in one common rule A is coded as Z, B as Y and C as X, because 1 + 26 = 27, 2 + 25 = 27 and 3 + 24 = 27.

Worked example: If PEN is coded as QFO, what is the code for RAT? The letters P, E and N move one position forward to Q, F and O respectively. Applying the same one-step forward rule to R, A and T gives S, B and U. So RAT is coded as SBU. Note that the shift need not be uniform for every letter; some rules shift different letters by different amounts, and such rules are identified by comparing each letter of the word with the corresponding letter of the code one at a time.

3. Number Coding

In number coding, words are converted into numbers or numbers into words using a rule based on the digits or on the positions of letters. In one popular form, each letter is replaced by its alphabet position. For example, if CAT is coded as 3120, then C-3, A-1 and T-20 give the code 3120. In another form, the positions are added, so CAT becomes 3 + 1 + 20 = 24.

Sometimes the digits themselves are operated upon. For example, a number such as 4789 may be coded as 3578 by subtracting 1 from every digit, or as 3691 by adding 2 to each digit and writing the results one after another. When a rule is applied to individual digits, the candidate must work digit by digit and write the results in the same order, taking care that the result of a digit operation remains a single digit or is handled as directed by the question.

Worked example: If 523 is coded as 265, then 614 is coded as 148. Comparing 523 with 265, the digits are reversed and 1 is subtracted from each: 3-1=2, 2-1=1, 5-1=4 does not match 265, so a different pattern must be found. A cleaner example: if 4789 is coded as 3578, each digit is reduced by 1, so 6214 becomes 5103. Whenever a simple relation is not obvious, check whether the digits are reversed, increased, decreased, added or multiplied, and always test the rule on the second example before applying it.

4. Mixed and Substitution Coding

Mixed coding uses letters, numbers and symbols together. For example, a sentence may be coded by replacing each word with a symbol and each vowel with a number. In such problems, the candidate matches the words of the sentence to their codes one by one and answers questions such as which symbol stands for a particular word. The best strategy is to find words that appear in both the coded message and the given sentence, because their codes are then directly identified.

Substitution coding replaces the name of one object by the name of another. For example, if 'book' is called 'pen', 'pen' is called 'paper' and 'paper' is called 'table', then a question about the colour of paper may actually refer to a table. These questions test careful reading, and the trick is to trace the chain of names step by step without jumping ahead.

Worked example: If 'red' is called 'yellow', 'yellow' is called 'green' and 'green' is called 'black', what is the colour of a ripe tomato? A ripe tomato is red, and since red is called yellow, the answer is yellow. The rule is to identify the object first and then follow its alias exactly as given in the question. Mixed coding and substitution problems are solved with the same three steps: understand the rule, apply it in the correct direction, and verify the result.

5. Quick Revision Tables

Table 1: Alphabet Positions and Opposite Letters

Letter Position Opposite Letter (sum 27)
A 1 Z
E 5 V
I 9 R
M 13 N
Q 17 J
U 21 F
Y 25 B

Table 2: Common Coding Rules

Rule Type Description Example
Forward shift Each letter moves n positions forward A -> C, CAT -> ECV
Backward shift Each letter moves n positions backward F -> D, DOG -> BME
Opposite letters Letter replaced by 27-position partner A -> Z, B -> Y
Alphabet position Letter replaced by its number CAT -> 3120
Sum of positions Code is total of positions CAT -> 24
Digit operation Each digit increased or decreased 4789 -> 3578
Substitution Object names are replaced red called yellow

6. Mind Map

flowchart TD
    A[Coding Decoding] --> B[Letter Coding]
    A --> C[Number Coding]
    A --> D[Mixed Coding]
    A --> E[Substitution Coding]
    B --> B1[Forward or backward shift]
    B --> B2[Opposite letters A-Z]
    B --> B3[Alphabet positions 1-26]
    C --> C1[Positions written as digits]
    C --> C2[Sum or product of positions]
    C --> C3[Digit operations]
    D --> D1[Match words to symbols]
    D --> D2[Vowels replaced by numbers]
    E --> E1[Trace the name chain]
    E --> E2[Find object then alias]
    B3 --> F[Memorise A=1 to Z=26]
    B2 --> G[Memorise A-Z, B-Y, C-X pairs]
    C2 --> H[Sum of positions often asked]
    A --> I[Identify rule first, then apply]

7. Important Diagrams (SVG)

The following diagrams show the alphabet positions and the letter-shift method of coding.

Alphabet Positions 1 to 26 Each letter has a fixed position used in many coding rules A 1 B 2 C 3 D 4 E 5 F 6 G 7 H 8 I 9 J 10 K 11 L 12 M 13 N 14 O 15 P 16 Q 17 R 18 S 19 T 20 U 21 V 22 W 23 X 24 Y 25 Z 26 Opposite pairs: A-Z, B-Y, C-X, D-W, E-V, F-U, G-T, H-S, I-R, J-Q, K-P, L-O, M-N Golden Rule Memorise A=1 to Z=26 and the opposite pairs; most coding rules use them.

Forward Shift Coding: CAT to ECV C A T Original letter +2 +2 +2 E C V Apply the same shift to every letter of the new word. RAT -> SBU with the same one-step forward rule. Golden Rule Identify the shift from the given example before coding a new word.

8. Common Mistakes

  1. Students often apply a backward shift when a forward shift is required, simply because they confuse the direction of movement. Always check the given example first.
  2. Many candidates forget the exact alphabet positions and treat J as 11 and K as 12, while J is 10 and K is 11. Memorise the position of every letter.
  3. A frequent error is to reverse the order of letters when writing the code, for example writing TAC instead of CAT. Preserve the order of letters unless the rule says otherwise.
  4. In number coding based on sums, candidates add the positions but forget to subtract 26 when the code must stay within the alphabet. Check the range of the final answer.
  5. In substitution coding, students jump directly to the word mentioned last instead of finding the actual object first and then following its alias.
  6. Some students use opposite pairs wrongly, writing A as B instead of Z. Remember that opposite pairs always add up to 27.

9. Exam Tips

  1. Memorise the alphabet positions and the opposite pairs A-Z, B-Y, C-X thoroughly; these are the tools for almost every coding question.
  2. When two examples are given, test every suspected rule on the second example before applying it to the new word. This eliminates wrong rules quickly.
  3. For mixed coding, first identify the code of a word that appears in both the sentence and the question, then eliminate options one by one.
  4. For substitution coding, underline the chain of names and trace it step by step; never combine two steps in a hurry.
  5. Practise speed drills on digit-based codes, because the arithmetic is simple but the exam pressure causes careless errors.
  6. If a code is not obvious within a few seconds, check whether the rule involves addition, subtraction, reversal or opposite letters; one of these four will almost always fit.

10. Conclusion

Coding and decoding is one of the easiest and most rewarding topics in the reasoning section of the RRB JE CBT-1 examination. In this chapter we have learnt the methods of letter coding, number coding, mixed coding and substitution coding, along with the alphabet positions and opposite pairs on which almost every rule is based. We have seen that every coding problem reduces to a single task: find the rule from the given example, apply it correctly, and verify the answer. With regular practice of speed drills and careful study of the worked examples, a candidate can answer coding questions in seconds and secure easy marks that build the confidence required for the remaining sections of the paper.