Correct option is A
Given:
- FRIEND is coded as IULHQG.
- We need to code ENEMY.
Formula Used:
The position of each letter in the alphabet is shifted forward or backward based on the coding pattern.
To identify the pattern:
- Find the alphabet positions of each letter.
- Compare the shifts applied to the letters of FRIEND to get IULHQG.
- Apply the same shifts to code ENEMY.
Solution:
- Alphabet positions for FRIEND → IULHQG:
| Letter (FRIEND) | Position | Letter (IULHQG) | Position | Shift Applied |
|-----------------|----------|-----------------|----------|---------------|
| F | 6 | I | 9 | +3 |
| R | 18 | U | 21 | +3 |
| I | 9 | L | 12 | +3 |
| E | 5 | H | 8 | +3 |
| N | 14 | Q | 17 | +3 |
| D | 4 | G | 7 | +3 |
Observation: Each letter is shifted 3 positions forward in the alphabet.
- Apply the same shift (+3) to ENEMY:
| Letter (ENEMY) | Position | Shifted Position | Coded Letter |
|----------------|----------|------------------|--------------|
| E | 5 | 8 | H |
| N | 14 | 17 | Q |
| E | 5 | 8 | H |
| M | 13 | 16 | P |
| Y | 25 | 28 → 2 | B |
Final Answer:
The code for ENEMY is HQHPB.