Wednesday, 22 February 2017

Examples of Coding and Decoding

For Example:
In a certain code, “CODING” is written as “DPEJOH”. How will DECODING be written in that code?
Examples of Coding and Decoding
Explanation:
Compare 1st letter of CODING with 1st letter of DPEJOH.
C is converted to D.
You know C’s next letter in alphabets is D.
O’s next letter is P.
D’s next letter is E.
I’s next letter is J.
N’s next letter is O.
G’s next letter is H.
This was how CODING was converted to DPEJOH. Now in the same way you have to convert DECODING.
So D is converted to E.
E-F, C-D, O-P, D-E, I-J, N-O, G-H
So DECODING should be converted to EFDPEJOH.
SUBSTITUTION:
In this section an object names are substituted with different object names. We should carefully trace the substitution and answer given question.
For Example:
If white is called blue, blue is called red, red is called yellowyellow is called greengreen is called blackblack is called violet and violet is called orange, what would be the colour of human blood?
1. Red
2. Green
3. Yellow
4. Violet
5. Orange
Ans: 3
Explanation:
The colour of the human blood is ‘red’, and as it is given that ‘red’ is called ‘yellow’. So, the colour of human blood is ‘yellow’.
For Example:
In a certain code language,
1. ‘pod na joc’ means ‘very bright boy';
2. ‘tam nu pod’ means ‘the boy comes';
3. ‘nu per ton’ means ‘keep the doll';
4. ‘joc ton su’ means ‘very good doll’.
Which of the following means ‘bright’ in the same code language?
1. joc   
2. pod  
3. ton   
4. na    
5.None of these

Ans: 4
Explanation:
In statements (a) and (b), the common code word is ‘pod’ and the common word is ‘boy’.
So, ‘pod’ stands for ‘boy’.
In statements (a) and (d), the common code word is ‘joc’ and the common word is ‘very’.
So, ‘joc’ stands for ‘very’.
So, in (a) ‘na’ stands for ‘bright’.

No comments:

Post a Comment