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

~105s

Another digit substitution

If PALE is coded as 2134 and EARTH as 41590, how is PEARL coded?

Show the answer and the worked solution

Correct answer: A.

24153

Worked solution

  1. PALE → P=2, A=1, L=3, E=4.
  2. EARTH → E=4 (consistent), A=1 (consistent), R=5, T=9, H=0.
  3. PEARL = P,E,A,R,L = 2,4,1,5,3 = 24153.

Answer: 24153.

The idea

Check the answer's length against the word's — PEARL has five letters, so the code has five digits. Here that alone rules out every other option; usually it removes one or two before any decoding.

Shortcut. P = 2 and E = 4 fix the opening 24, which already removes 215394; the code stops at L = 3 because PEARL has only five letters, leaving 24153.

Common trap. "241539" — it opens with the correct 2415, so a candidate matching only the first few digits picks it; it has six digits for a five-letter word.

Another digit substitution — Aptitude Question

Another digit substitution: If PALE is coded as 2134 and EARTH as 41590, how is PEARL coded? Answer and worked solution on CodeKairo.

Question

If PALE is coded as 2134 and EARTH as 41590, how is PEARL coded?

Options

  1. 24153
  2. 215394
  3. 241539
  4. 241593
Show the answer and the worked solution

Correct answer: A. 24153

Worked solution

  1. PALE → P=2, A=1, L=3, E=4.
  2. EARTH → E=4 (consistent), A=1 (consistent), R=5, T=9, H=0.
  3. PEARL = P,E,A,R,L = 2,4,1,5,3 = 24153.

Answer: 24153.

The idea

Check the answer's length against the word's — PEARL has five letters, so the code has five digits. Here that alone rules out every other option; usually it removes one or two before any decoding.

Shortcut. P = 2 and E = 4 fix the opening 24, which already removes 215394; the code stops at L = 3 because PEARL has only five letters, leaving 24153.

Common trap. "241539" — it opens with the correct 2415, so a candidate matching only the first few digits picks it; it has six digits for a five-letter word.

All Coding & Decoding questions · placement mock tests