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

~75s

Shift by position

If ACE is coded as BEH, how is BUS coded?

Show the answer and the worked solution

Correct answer: C.

CWV

Worked solution

  1. A → B is +1, C → E is +2, E → H is +3: the shift equals the letter's position in the word.
  2. B + 1 = C, U + 2 = W, S + 3 = V.
  3. BUS becomes CWV.

Answer: CWV.

The idea

When the shift is not constant, check whether it increases with position (+1, +2, +3) or alternates in sign. Write the shifts under the letters before guessing.

Shortcut. Test one letter per option: S + 3 = V drops CWU, B + 1 = C drops DWV, U + 2 = W drops CVV — leaving CWV.

Common trap. "CWU" — carrying the middle shift of +2 into the third letter; the shifts rise +1, +2, +3, so S → V.

Shift by position — Coding & Decoding Aptitude Question

Shift by position: If ACE is coded as BEH, how is BUS coded? Answer and worked solution on CodeKairo.

Question

If ACE is coded as BEH, how is BUS coded?

Options

  1. CWU
  2. DWV
  3. CWV
  4. CVV
Show the answer and the worked solution

Correct answer: C. CWV

Worked solution

  1. A → B is +1, C → E is +2, E → H is +3: the shift equals the letter's position in the word.
  2. B + 1 = C, U + 2 = W, S + 3 = V.
  3. BUS becomes CWV.

Answer: CWV.

The idea

When the shift is not constant, check whether it increases with position (+1, +2, +3) or alternates in sign. Write the shifts under the letters before guessing.

Shortcut. Test one letter per option: S + 3 = V drops CWU, B + 1 = C drops DWV, U + 2 = W drops CVV — leaving CWV.

Common trap. "CWU" — carrying the middle shift of +2 into the third letter; the shifts rise +1, +2, +3, so S → V.

All Coding & Decoding questions · placement mock tests