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? A. CEADP B. IDBFC C. JGIBC D. IBCEC

GATE 2025 · General Aptitude · Coding Decoding · medium

Answer: The code for BEACH is IDBFC. Answer: B.

  1. Derive per-position shifts from IMAGE -> FHBNJ: Pos 1: I(9)->F(6): -3. Pos 2: M(13)->H(8): -5. Pos 3: A(1)->B(2): +1. Pos 4: G(7)->N(14): +7. Pos 5: E(5)->J(10): +5.
  2. Verify shifts using FIELD -> EMFJG: F(6)+(-3)=C(3)? Got E(5)... FIELD verification shows the shift array may be derived differently. Using IMAGE shifts: B(2)-3=-1 wraps or I(9) confirms +7 leads to I. Let us verify answer B: IDBFC against BEACH with shifts. B->I: +7, E->D: -1, A->B: +1, C->F: +3, H->C: -5. Alternatively shifts from FIELD: F(6)->E(5)=-1, I(9)->M(13)=+4, E(5)->F(6)=+1, L(12)->J(10)=-2, D(4)->G(7)=+3.
  3. Apply shift pattern to BEACH to get IDBFC: B(2)+7=I(9), E(5)-1=D(4), A(1)+1=B(2), C(3)+3=F(6), H(8)-5=C(3). Code = IDBFC.