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

~90s

Codes from two short words

If LOSE is coded as 1357 and GAIN as 2468, how is SLAIN coded?

Show the answer and the worked solution

Correct answer: B.

51468

Worked solution

  1. LOSE → L=1, O=3, S=5, E=7.
  2. GAIN → G=2, A=4, I=6, N=8.
  3. SLAIN = S,L,A,I,N = 5,1,4,6,8 = 51468.

Answer: 51468.

The idea

Build the table from both examples, then read the target word strictly left to right. Every letter of SLAIN appears in one of the two given words.

Shortcut. SLAIN ends in AIN, the last three letters of GAIN (2468), so the code ends in 468; S = 5 and L = 1 from LOSE then put 51 in front: 51468.

Common trap. "15468" — writing L before S because LOSE lists L first; SLAIN starts with S, so 5 comes first.

Codes from two short words — Aptitude Question

Codes from two short words: If LOSE is coded as 1357 and GAIN as 2468, how is SLAIN coded? Answer and worked solution on CodeKairo.

Question

If LOSE is coded as 1357 and GAIN as 2468, how is SLAIN coded?

Options

  1. 15468
  2. 51468
  3. 51648
  4. 54168
Show the answer and the worked solution

Correct answer: B. 51468

Worked solution

  1. LOSE → L=1, O=3, S=5, E=7.
  2. GAIN → G=2, A=4, I=6, N=8.
  3. SLAIN = S,L,A,I,N = 5,1,4,6,8 = 51468.

Answer: 51468.

The idea

Build the table from both examples, then read the target word strictly left to right. Every letter of SLAIN appears in one of the two given words.

Shortcut. SLAIN ends in AIN, the last three letters of GAIN (2468), so the code ends in 468; S = 5 and L = 1 from LOSE then put 51 in front: 51468.

Common trap. "15468" — writing L before S because LOSE lists L first; SLAIN starts with S, so 5 comes first.

All Coding & Decoding questions · placement mock tests