0
0

Letter Substitution Code

Introduction

Letter Substitution Code reasoning-based coding questions में सबसे आम पैटर्न में से एक है। इस पैटर्न में किसी word के हर letter को एक निश्चित और समान नियम के अनुसार किसी दूसरे letter से बदल दिया जाता है। इसे समझकर आप SSC, Banking, Railways जैसे exams में आने वाले substitution-style questions को बहुत जल्दी solve कर सकते हैं।

Pattern: Letter Substitution Code

Pattern

मुख्य विचार यह है कि किसी word के हर letter को English alphabet में एक समान shift rule के अनुसार आगे (+n) या पीछे (-n) move करवाकर बदला जाता है।

यही shift पूरे word के सभी letters पर एक जैसा लागू होता है। यदि shift ‘Z’ से आगे निकल जाए तो alphabet फिर से शुरुआत पर लौट आता है (जैसे +2 shift पर Y → Z → A)। इसी तरह ‘A’ से पीछे जाने पर alphabet अंत की तरफ घूम जाता है (जैसे -2 पर A → Z → Y)।

Substitution के प्रकार:

  • Uniform Shift: हर letter को एक ही fixed amount से shift किया जाता है (जैसे +1 या +2)।
  • Conditional Shift: vowels और consonants को अलग-अलग shift दिया जाता है (जैसे vowels +1, consonants +2)।
  • Alternating Shift: odd position वाले letters एक नियम से, even वाले दूसरे नियम से shift होते हैं।
  • Reversal / Combination: कभी-कभी shifting के बाद पूरी word को reverse भी किया जाता है या दूसरी logic के साथ mix किया जाता है।

यह पैटर्न आपकी consistent transformation rule पहचानने और alphabet wrapping संभालने की क्षमता को test करता है। याद रखें: shifts हमेशा A-Z के अंदर घूमकर ही चलते हैं।

Step-by-Step Example

Question

यदि CAT = DBU, तो DOG = ?
Options:
A. EPH    B. DPH    C. EPI    D. FQH

Solution

  1. Step 1: दिए गए उदाहरण का rule पहचानें

    CAT → DBU की तुलना करें: C→D, A→B, T→U. हर letter को +1 forward shift किया गया है।
  2. Step 2: यही rule नए word पर लागू करें

    DOG के हर letter को +1 forward करें: D → E, O → P, G → H इसलिए DOG → EPH.
  3. Step 3: Rule consistency check करें

    हर letter में +1 shift सही बैठ रहा है: E, D के बाद; P, O के बाद; H, G के बाद आता है।
  4. Final Answer:

    EPH → Option A
  5. Quick Check:

    EPH को -1 shift करें: E→D, P→O, H→G → DOG वापस मिल जाता है ✅

Quick Variations

1. Shift forward की जगह backward (-1, -2) हो सकता है।

2. Shift value अलग-अलग हो सकती है (जैसे +2, +3 या alternating rules)।

3. कभी shifting के बाद letters को reverse करके final code बनाया जाता है।

4. कई बार vowels और consonants पर अलग-अलग shifts लगते हैं।

Trick to Always Use

  • Step 1 → हमेशा पहले letter की तुलना करके shift की दिशा (+ या -) पहचानें।
  • Step 2 → Rule मिलते ही पूरे word के सभी letters पर उसी shift को लागू करें।
  • Step 3 → Reverse shift करके हमेशा verify करें कि आपका answer सही code देता है।

Summary

Summary

  • हर letter पर एक fixed forward या backward shift लागू होता है।
  • Letter pairs की तुलना करके shift की दिशा और magnitude पहचानें।
  • Rule पूरे word पर समान रूप से लागू करें।
  • Reverse-check करके ensure करें कि transformation consistent है।

याद रखने योग्य उदाहरण:
यदि हर letter +1 shift होता है, तो CAT → DBU और DOG → EPH।

Practice

(1/5)
1. If MAP = OCR in a certain code, then what is VEX = ?
easy
A. XGZ
B. WFW
C. VGX
D. XFY

Solution

  1. Step 1: Identify the rule

    MAP → OCR: M→O (+2), A→C (+2), P→R (+2). Each letter is shifted forward by +2.
  2. Step 2: Apply the rule

    Apply +2 to VEX: V→X, E→G, X→Z → Result = XGZ.
  3. Step 3: Verify consistency

    All letters advanced by 2 positions, no wrap-around needed here.
  4. Final Answer:

    XGZ → Option A
  5. Quick Check:

    Shift XGZ backward by -2: X→V, G→E, Z→X → VEX ✅
Hint: Spot the shift magnitude from the first letter pair, then apply uniformly.
Common Mistakes: Mixing +1 and +2 shifts or forgetting to shift the last letter.
2. If TOP = SNO in a certain code, then what is BAG = ?
easy
A. CBH
B. AZF
C. AZH
D. CBG

Solution

  1. Step 1: Identify the rule

    TOP → SNO: T→S (-1), O→N (-1), P→O (-1). Each letter is shifted -1 (one step backward).
  2. Step 2: Apply the rule

    Apply -1 to BAG: B→A, A→Z (wrap), G→F → Result = AZF.
  3. Step 3: Verify wrap handling

    A→Z is correct because shifting backward from A wraps to Z.
  4. Final Answer:

    AZF → Option B
  5. Quick Check:

    Shift AZF forward by +1 → A→B, Z→A, F→G → BAG ✅
Hint: If letters move backward, remember A→Z wrap when shifting -1 from A.
Common Mistakes: Not applying wrap-around for A (A→Z) or incorrectly shifting vowels differently.
3. In a code vowels are shifted +1 and consonants are shifted +2. If BOX = ?, what is the coded form?
easy
A. CPY
B. DPZ
C. DPY
D. CQZ

Solution

  1. Step 1: Identify the rule

    The rule states: vowels → +1, consonants → +2.
  2. Step 2: Apply the rule to each letter

    B (consonant) → +2 → D; O (vowel) → +1 → P; X (consonant) → +2 → Z. So intermediate result = D P Z.
  3. Step 3: Check for off-by-one errors

    Ensure vowels used are only A,E,I,O,U; O→P is +1. Final = DPZ.
  4. Final Answer:

    DPZ → Option B
  5. Quick Check:

    Reverse rule: D→B (-2), P→O (-1), Z→X (-2) → BOX ✅
Hint: Tag letters as vowel/consonant first, then apply respective shifts.
Common Mistakes: Applying same shift to vowels and consonants or misidentifying vowels.
4. If ZOO is coded as CRR, what is JAM coded as?
medium
A. MCQ
B. MCP
C. MDN
D. MDP

Solution

  1. Step 1: Identify the rule

    ZOO → CRR shows each letter is shifted forward by +3 with alphabet wrap (Z→C).
  2. Step 2: Apply +3 to JAM

    J→M, A→D, M→P → intermediate = M D P.
  3. Step 3: Confirm wrap logic

    No extra wrap needed here because letters stay within A-Z after +3. Final = MDP.
  4. Final Answer:

    MDP → Option D
  5. Quick Check:

    Shift MDP backward by -3: M→J, D→A, P→M → JAM ✅
Hint: For +n shifts, always check Z→ wrap to A by counting n steps beyond Z.
Common Mistakes: Forgetting wrap at Z or miscounting forward steps for letters near end of alphabet.
5. A code first shifts every letter forward by +1 then reverses the entire word. If RING becomes ?, what is the coded form?
medium
A. HOJS
B. SJOH
C. SJOG
D. HOJR

Solution

  1. Step 1: Identify the compound rule

    The rule: (1) shift each letter forward by +1; (2) reverse the order of the shifted letters.
  2. Step 2: Apply +1 shift to RING

    R→S, I→J, N→O, G→H → shifted result = S J O H.
  3. Step 3: Reverse the shifted string

    Reverse S J O H → H O J S → Final = HOJS.
  4. Final Answer:

    HOJS → Option A
  5. Quick Check:

    Reverse HOJS → SJOH, then shift -1 each: S→R, J→I, O→N, H→G → RING ✅
Hint: When two operations apply, perform them in the stated order; practice reversing the steps to verify.
Common Mistakes: Reversing first then shifting, or forgetting to reverse after shifting.

Mock Test

Ready for a challenge?

Take a 10-minute AI-powered test with 10 questions (Easy-Medium-Hard mix) and get instant SWOT analysis of your performance!

10 Questions
5 Minutes