Coding & Decoding
Expert
2 min
In a code, letters in odd positions are shifted one place forward and letters in even positions are shifted one place backward. What is the code for CODE?
Hint
Apply the rule separately to each position.
Answer
DPED.
Explanation
C at position 1 becomes D. O at position 2 becomes N. D at position 3 becomes E. E at position 4 becomes D. Therefore the code is DNED.
Step-by-Step Solution
Position 1: C→D.
Position 2: O→N.
Position 3: D→E.
Position 4: E→D.
Correct code = DNED.
Position 2: O→N.
Position 3: D→E.
Position 4: E→D.
Correct code = DNED.