In a certain coding language, if the word STORK is coded as VQRON, then how…

2024

In a certain coding language, if the word STORK is coded as VQRON, then how will TIRED be coded?

Answer: B. W F U B GConceptIn an alternating-shift letter code, the rule is applied position by position. A forward alphabet shift is positive and a backward shift is negative;…

  1. A.

    V E T C F

  2. B.

    W F U B G

  3. C.

    W E T C G

  4. D.

    V F U B F

Attempted by 1 students.

Show answer & explanation

Correct answer: B

Concept

In an alternating-shift letter code, the rule is applied position by position. A forward alphabet shift is positive and a backward shift is negative; each position is processed independently.

Application

The example STORK → VQRON gives the shift sequence +3, −3, +3, −3, +3.

  1. T shifted forward by 3 becomes W.

  2. I shifted backward by 3 becomes F.

  3. R shifted forward by 3 becomes U.

  4. E shifted backward by 3 becomes B.

  5. D shifted forward by 3 becomes G.

  6. For a five-letter word this is a direct scan; for n letters it takes O(n) time. No A–Z wraparound is needed here.

Cross-check and contrast

Reverse the same shifts on WFUBG: W−3=T, F+3=I, U−3=R, B+3=E, and G−3=D, recovering TIRED.

  • VETCF represents the shifts +2, −4, +2, −2, +2 from TIRED.

  • WFUBG represents the shifts +3, −3, +3, −3, +3 from TIRED.

  • WETCG represents the shifts +3, −4, +2, −2, +3 from TIRED.

  • VFUBF represents the shifts +2, −3, +3, −3, +2 from TIRED.

Therefore, TIRED is coded as WFUBG.

Explore the full course: Ssc Cgl Tier 1

Loading lesson…