In a certain code language, letters are represented by digits. For example, FRAME is written as 79635 and TOWEL is written as 21854. Using the same letter-to-digit mapping, how will the word WORM be written in that code language?

Difficulty: Medium

Correct Answer: 8193

Explanation:


Introduction / Context:
This is a classic coding-decoding question based on a fixed substitution mapping between letters and digits. You must infer the digit corresponding to each letter from the given coded words, and then use that mapping to encode a new word.


Given Data / Assumptions:

  • FRAME → 79635
  • TOWEL → 21854
  • Same letter always maps to the same digit.
  • Find code for WORM.


Concept / Approach:
Create a letter-to-digit dictionary from the examples. Use common letters across examples (like E) to confirm consistency. Then encode each letter of WORM in order.


Step-by-Step Solution:
From FRAME → 79635: F=7, R=9, A=6, M=3, E=5 From TOWEL → 21854: T=2, O=1, W=8, E=5, L=4 Notice E=5 appears in both, confirming mapping consistency. Now encode WORM: W = 8 O = 1 R = 9 M = 3 So WORM → 8193.


Verification / Alternative check:
Cross-check: R and M were obtained from FRAME, while W and O were obtained from TOWEL. Since all required letters exist in the mapping and E was consistent across samples, 8193 is reliable.


Why Other Options Are Wrong:
9183: swaps W and R positions incorrectly. 9376: uses digits not mapped to WORM correctly. 1593: starts with O instead of W. 8139: misplaces R and M digits.


Common Pitfalls:
Reading digits in wrong order, mixing mappings between letters, or assuming digits represent positions rather than substitutions are common mistakes.


Final Answer:
8193

More Questions from Coding Decoding

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion