GATE CS 2025 Set 2 | Question 7

MCQ · 2 marks · −0.66

If IMAGE and FIELD are coded as FHBNJ and EMFJG respectively then, which one among the given options is the most appropriate code for BEACH ?

  1. Option A: CEADP
  2. Option B: IDBFC (correct)
  3. Option C: JGIBC
  4. Option D: IBCEC

Answer

(B)

Explanation

Compare IMAGE with FHBNJ. Moving each letter of IMAGE one step forward in the alphabet gives J N B H F, and writing that in reverse order gives FHBNJ. FIELD follows the same rule: one step forward gives G J F M E, which reversed is EMFJG.

For BEACH, one step forward gives C F B D I, and reversing it gives IDBFC. None of the other options fits this rule.

Answer: B