The Wayback Machine - https://web.archive.org/web/20250823172143/https://www.geeksforgeeks.org/python/coding-decoding/
Open In App

Coding Decoding - Solved Questions and Answers

Last Updated : 11 Aug, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Coding-Decoding is a reasoning process where letters, numbers, or symbols are transformed using specific rules, and the task is to identify the pattern to encode/decode given information.

Coding-Decoding questions and answers are provided below for you to learn and practice.

Question 1: If EARTH is written as FCUXM in a certain code. How is MOON written in that code? 

Solution: 

code-1

Question 2: If DELHI is written as EDMGJ in a certain code. How is NEPAL written in that code?

Solution :  

code-1-1

Question 3: If SYMBOL is written as NZTMPC is it a certain code? How is NUMBER written in that code? 

Solution: 

Acc. to question:

code-2


Question 4: In a certain code, COMPUTER is written as PMOCRETU, how is DECIPHER written in that code? 

Solution: 

Acc. to question:

code-3



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

Question 8: COMPUTER" is coded as 3 15 13 16 21 20 5 18, and "DEVICE" is coded as 4 5 22 9 3 5. Then, what would be the code for "RECIPE"?

Solution: 

In this case, we can see that each letter is written as its position in the alphabet:

R is the 18th letter, so it is written as 18.
E is the 5th letter, so it is written as 5.
C is the 3rd letter, so it is written as 3.
I is the 9th letter, so it is written as 9.
P is the 16th letter, so it is written as 16.
E is the 5th letter again, so it is written as 5.

Thus, "RECIPE" is written as 18 5 3 9 16 5.

Question 9: "HELLO" is coded as 8 5 12 12 15, and "WORLD" is coded as 23 15 18 12 4. Then, what would be the code for "GREAT"?

Solution: 

In this case, we can see that each letter is written as its position in the alphabet:

G is the 7th letter, so it is written as 7.
R is the 18th letter, so it is written as 18.
E is the 5th letter, so it is written as 5.
A is the 1st letter, so it is written as 1.
T is the 20th letter, so it is written as 20.

Thus, "GREAT" is written as 7 18 5 1 20.

Question 10: "APPLE" is coded as 1 16 16 12 5, and "BANANA" is coded as 2 1 14 1 14 1. Then, what would be the code for "GRAPE"?

Solution: 

In this case, we can see that each letter is written as its position in the alphabet:

G is the 7th letter, so it is written as 7.
R is the 18th letter, so it is written as 18.
A is the 1st letter, so it is written as 1.
P is the 16th letter, so it is written as 16.
E is the 5th letter, so it is written as 5.

Thus, "GRAPE" is written as 7 18 1 16 5.

Also Check:

➣ Test your knowledge- Quiz!


Article Tags :
Practice Tags :

Similar Reads