# Coding-Decoding

CODING-DECODING is an important part of Logical reasoning section in all aptitude related examinations.
Coding is a process used to encrypt a word, a number in a particular code or pattern based on some set of rules.
Decoding is a process to decrypt the pattern into its original form from the given codes.

Letter Coding In this type of questions, alphabets of a word are replaced by some other alphabets according to specific rule to form code.

Number Coding In this type of questions, a word is replaced by certain numbers according to some specific rule. ## Sample Problems –

Question 1: If EARTH is written as FCUXM in a certain code. How is MOON written in that code?
Solution : Question 2: If DELHI is written as EDMGJ in a certain code. How is NEPAL written in that code?
Solution : Question 3: If SYMBOL is written as NZTMPC is a certain code. How is NUMBER written in that code?
Solution : Acc. to question Question 4: In a certain code, COMPUTER is written as PMOCRETU, how is DECIPHER written in that code?
Solution : Acc. to question Question 5: In a certain code, NEWYORK is written as 111, how is NEWJERSEY written in that code?
Solution : In NEWYORK
N = 14, E = 5, W = 23, Y = 25, O = 15, R = 18, K = 11
Total = 14 + 5 + 23 + 25 + 15 + 18 + 11 = 111
In NEWJERSEY
Total = 14 + 5 + 23 + 10 + 5 + 18 + 19 + 5 + 25
= 124

Question 6: In a certain code, HARYANA is written as 8197151, how is DELHI written in that code?
Solution : We used the number of alphabets here.
H = 8
A = 1
R = 18 = 1+8 = 9
Y = 25 = 2+5 = 7
For DELHI
D = 4
E = 5
L = 12 = 1+2 = 3
H = 8
I = 9
Hence, DELHI is written as 45389.

Question 7: In a certain code BOMB is written as 5745 and BAY is written as 529, how is BOMBAY written in that code?
Solution : Acc. to question
Use the numbers to relate the words

```      B O M B      B A Y      ->          B O M B A Y
5 7 4 5      5 2 9                  5 7 4 5 2 9
```

My Personal Notes arrow_drop_up Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.