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 G — ConceptIn an alternating-shift letter code, the rule is applied position by position. A forward alphabet shift is positive and a backward shift is negative;…
- A.
V E T C F
- B.
W F U B G
- C.
W E T C G
- 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.
T shifted forward by 3 becomes W.
I shifted backward by 3 becomes F.
R shifted forward by 3 becomes U.
E shifted backward by 3 becomes B.
D shifted forward by 3 becomes G.
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.