UPSC CSAT 2025 Q57: Letter-Digit Coding-Decoding — Solved

If FRANCE is coded as 654321 and GERMANY is coded as 9158437, then how is YEMEN coded ?

  1. 54321
  2. 81913
  3. 71913
  4. 71813

Answer: (d) 71813

Solution

  1. Write FRANCE and its code letter by letter. The word has 6 letters and the code has 6 digits, so each letter takes one digit: F → 6, R → 5, A → 4, N → 3, C → 2, E → 1.

  2. Write GERMANY and its code the same way. The word has 7 letters and the code has 7 digits: G → 9, E → 1, R → 5, M → 8, A → 4, N → 3, Y → 7.

  3. Check that the two codes agree on the letters they share. E = 1 in both words, R = 5 in both, A = 4 in both and N = 3 in both. The letters keep the same digit, so this is a fixed letter-to-digit substitution. No shifting or reversing rule is involved.

  4. Make a key with every letter of YEMEN: Y = 7 (from GERMANY), E = 1 (from both words), M = 8 (from GERMANY), N = 3 (from both words).

  5. Code YEMEN one letter at a time: Y → 7 E → 1 M → 8 E → 1 N → 3

  6. Join the digits in order: 7, 1, 8, 1, 3 gives 71813.

Answer: YEMEN is coded as 71813.

Option-wise explanation

  • a: incorrect — 54321 is the code for RANCE, the last five letters of FRANCE. Pick it and you have counted down the digits without decoding YEMEN. It also gives the two E's in YEMEN different digits (4 and 2), which a fixed substitution cannot do.
  • b: incorrect — This option gives Y = 8 and M = 9, so each digit is taken from the letter just before it in GERMANY. The real values are Y = 7 and M = 8. The trap is a one-place misalignment when you read the GERMANY code.
  • c: incorrect — Y = 7, E = 1 and N = 3 are right, but M is given 9, which is G's digit. M is the 4th letter of GERMANY, and the 4th digit of 9158437 is 8. This is an off-by-one slip on a single letter.
  • d: correct — Y = 7, E = 1, M = 8, E = 1 and N = 3, all read straight from the two given codes, give 71813.

How to eliminate

Use the repeated letter first. YEMEN has E in the 2nd and 4th places, so the 2nd and 4th digits of the answer must match. That removes 54321, where those digits are 4 and 2. Next, E = 1 in both given codes, which every remaining option already shows. Y is the last letter of GERMANY, so Y = 7. That removes 81913. Now only M separates the last two options. M is the 4th letter of GERMANY, and the 4th digit of 9158437 is 8. That leaves 71813. About 20–30 seconds. Attempt this one first. It is a sure mark.

Know more

Letter-digit substitution coding

In the simplest coding questions, each letter always maps to the same digit, wherever it appears. To solve one:

  1. Line up each word with its code, one position at a time. Check that the lengths match.
  2. Confirm consistency. A letter that appears in two words must have the same digit in both. If it does not, the rule is something else, such as a positional or reversed code.
  3. Build a key that covers only the letters you need.
  4. Use repeated letters in the target word to cut options. Equal letters need equal digits.

Worked variant

If PLATE = 72934 and METAL = 64392, how is LAMP coded?

Letter P L A T E M
Digit 7 2 9 3 4 6

Check: in METAL, E = 4, T = 3, A = 9 and L = 2, which matches PLATE. So LAMP = L2 A9 M6 P7 = 2967.

Common traps in the options

Trap How it looks
Off-by-one alignment One letter takes its neighbour's digit
Partial copy A run of digits lifted from a given code
Broken repeat A repeated letter gets two different digits

Start with the repeat check and the rarest letter. You can often settle the question without coding the whole word.