In a certain code language, the word "MATCH" is written as "NYWYM" and the word "BOARD" is written as "CMDNI". Using the same position-wise shifting pattern, how is the word "PRINT" written in that code language?

Difficulty: Medium

Correct Answer: QPLJY

Explanation:


Introduction / Context:
This coding question uses a pattern where the shift applied to each letter depends on its position in the word. The examples "MATCH" → "NYWYM" and "BOARD" → "CMDNI" reveal an alternating sequence of positive and negative shifts whose magnitudes increase. We must identify this sequence and apply it to the word "PRINT".



Given Data / Assumptions:

  • "MATCH" → "NYWYM".
  • "BOARD" → "CMDNI".
  • We must code "PRINT".
  • Alphabet positions: A = 1, B = 2, ..., Z = 26.


Concept / Approach:
By comparing each letter in the original words with its coded counterpart, we determine the numeric shift at each position. For both given words, the pattern is +1, −2, +3, −4, +5 for positions 1 through 5. We then apply this same sequence of shifts to the letters of "PRINT".



Step-by-Step Solution:
Step 1: Confirm the pattern using MATCH → NYWYM. M(13) → N(14): +1. A(1) → Y(25): −2 (wrap: 1 − 2 = −1; −1 + 26 = 25). T(20) → W(23): +3. C(3) → Y(25): −4 (3 − 4 = −1; −1 + 26 = 25). H(8) → M(13): +5. So the pattern of shifts is: +1, −2, +3, −4, +5. Step 2: Check the same pattern with BOARD → CMDNI. B(2) → C(3): +1. O(15) → M(13): −2. A(1) → D(4): +3. R(18) → N(14): −4. D(4) → I(9): +5. The pattern is confirmed. Step 3: Apply this pattern to PRINT. Word: P R I N T. Positions: 1 2 3 4 5. Position 1 (+1): P(16) + 1 = 17 → Q. Position 2 (−2): R(18) − 2 = 16 → P. Position 3 (+3): I(9) + 3 = 12 → L. Position 4 (−4): N(14) − 4 = 10 → J. Position 5 (+5): T(20) + 5 = 25 → Y. Step 4: Combine coded letters. PRINT → Q P L J Y → "QPLJY".


Verification / Alternative check:
You can reapply the +1, −2, +3, −4, +5 pattern to MATCH and BOARD to confirm you get NYWYM and CMDNI respectively. This double-check ensures you have not miscalculated any of the shifts and that the pattern is truly consistent.



Why Other Options Are Wrong:
Other choices rearrange letters or correspond to different shift values. For instance, codes ending with a letter other than Y contradict the requirement that T must be shifted by +5 to give Y.



Common Pitfalls:
It is easy to forget the negative shifts or to fail to handle wrap-around correctly when subtracting. Some candidates mistakenly apply the same shift to all positions instead of an alternating sequence. Always verify the full pattern on all example letters.



Final Answer:
Using the same alternating shift pattern, "PRINT" is coded as QPLJY.

More Questions from Coding Decoding

Discussion & Comments

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