AI InterviewSearch…Search problems, topics, or pages…Ctrl KGet started
Easyletter shift

~60s

If MADRAS is NBESBT

If MADRAS is coded as NBESBT, how is BOMBAY coded?

Show the answer and the worked solution

Correct answer: A.

CPNCBZ

Worked solution

  1. The shift is +1 on every letter.
  2. B→C, O→P, M→N, B→C, A→B, Y→Z.
  3. The code is CPNCBZ.

Answer: CPNCBZ.

The idea

Check the shift on at least three letters before applying it. Y wrapping to Z is fine; only Z would wrap round to A.

Shortcut. The options differ only at letters 2, 3 and 6: O+1 = P, M+1 = N and Y+1 = Z. CPNCBZ is the only option with all three.

Common trap. "CPNCBY" — copying Y unchanged because it sits at the end of the alphabet; Y + 1 is Z, and only Z itself would wrap round.

If MADRAS is NBESBT — Coding & Decoding Aptitude Question

If MADRAS is NBESBT: If MADRAS is coded as NBESBT, how is BOMBAY coded? Answer and worked solution on CodeKairo.

Question

If MADRAS is coded as NBESBT, how is BOMBAY coded?

Options

  1. CPNCBZ
  2. CPNCBY
  3. CQNCBZ
  4. CPMCBZ
Show the answer and the worked solution

Correct answer: A. CPNCBZ

Worked solution

  1. The shift is +1 on every letter.
  2. B→C, O→P, M→N, B→C, A→B, Y→Z.
  3. The code is CPNCBZ.

Answer: CPNCBZ.

The idea

Check the shift on at least three letters before applying it. Y wrapping to Z is fine; only Z would wrap round to A.

Shortcut. The options differ only at letters 2, 3 and 6: O+1 = P, M+1 = N and Y+1 = Z. CPNCBZ is the only option with all three.

Common trap. "CPNCBY" — copying Y unchanged because it sits at the end of the alphabet; Y + 1 is Z, and only Z itself would wrap round.

All Coding & Decoding questions · placement mock tests