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

~60s

Words coded as numbers

If RED is coded as 27 and BLUE as 40, how is PINK coded? (A = 1, B = 2, …, Z = 26.)

Show the answer and the worked solution

Correct answer: B.

50

Worked solution

  1. RED → 18 + 5 + 4 = 27 ✓
  2. BLUE → 2 + 12 + 21 + 5 = 40 ✓ The code is the sum of the letter positions.
  3. PINK → 16 + 9 + 14 + 11 = 50.

Answer: 50.

The idea

Numeric codes are almost always the sum of letter positions, that sum plus a constant, or the product. Confirm your rule against every example given — one match can be a coincidence, two rarely is.

Shortcut. Only the units digit matters: P, I, N, K are 16, 9, 14, 11, and 6 + 9 + 4 + 1 ends in 0, so 50 is the only possible option.

Common trap. 48 — misplacing N as the 12th letter instead of the 14th; the units digits already demand an answer ending in 0.

Coding & Decoding

3 of 42

Level

Medium

Target time

~60s

Words coded as numbers — Coding & Decoding Aptitude Question

Words coded as numbers: If RED is coded as 27 and BLUE as 40, how is PINK coded? (A = 1, B = 2, …, Z = 26.) Answer and worked solution on CodeKairo.

Question

If RED is coded as 27 and BLUE as 40, how is PINK coded? (A = 1, B = 2, …, Z = 26.)

Options

  1. 48
  2. 50
  3. 53
  4. 56
Show the answer and the worked solution

Correct answer: B. 50

Worked solution

  1. RED → 18 + 5 + 4 = 27 ✓
  2. BLUE → 2 + 12 + 21 + 5 = 40 ✓ The code is the sum of the letter positions.
  3. PINK → 16 + 9 + 14 + 11 = 50.

Answer: 50.

The idea

Numeric codes are almost always the sum of letter positions, that sum plus a constant, or the product. Confirm your rule against every example given — one match can be a coincidence, two rarely is.

Shortcut. Only the units digit matters: P, I, N, K are 16, 9, 14, 11, and 6 + 9 + 4 + 1 ends in 0, so 50 is the only possible option.

Common trap. 48 — misplacing N as the 12th letter instead of the 14th; the units digits already demand an answer ending in 0.

All Coding & Decoding questions · placement mock tests