Coding-Decoding

16.

A code shifts each position by its own fixed number of alphabet places, using the same shifts for every four-letter word. Letters are not reordered. MINT becomes OKOX and FARM becomes HCSQ. How is BOLT coded? Wrap from Z to A when needed.

Show answer
Explanation

M to O is +2, I to K is +2, N to O is +1, and T to X is +4. FARM gives H, C, S, Q under these same shifts. Applying +2,+2,+1,+4 to BOLT gives DQMX.

17.

To encode a word, replace each letter by its opposite-alphabet partner (A with Z, B with Y, and so on), then reverse the result. Which word is coded as VMLGH?

Show answer
Explanation

Reverse VMLGH to obtain HGLMV. Replacing each letter by its opposite-alphabet partner gives STONE.

18.

Encode digits using 1=A, 2=B, 3=C, 4=D, 5=E, 6=F, 7=G, 8=H, 9=I and 0=J. After substitution, if both end digits are odd, swap the first and last code letters. Otherwise, if both are even, replace both end code letters with X. Otherwise, leave them unchanged. What is the code for 37259?

Show answer
Explanation

Basic substitution gives CGBEI. The end digits 3 and 9 are both odd, so swap C and I. The result is IGBEC.

19.

To encode a six-letter word, its letters are read in position order 2,4,6,1,3,5. The code is AKTPCE. What is the original word?

Show answer
Explanation

The code assigns position 2=A, 4=K, 6=T, 1=P, 3=C, 5=E. Reading positions 1 through 6 gives PACKET.

20.

A four-letter word is encoded by shifting its first letter forward 1 place, second forward 2, third forward 3 and fourth forward 4, wrapping around the alphabet. The code is DQGI. What is the word?

Show answer
Explanation

Undo the shifts: D-1=C, Q-2=O, G-3=D and I-4=E. The word is CODE.