Coding-Decoding

21.

A code only rearranges letters. It uses the same fixed position order for every five-letter word. PLANT becomes ANTPL and BRICK becomes ICKBR. How is STORM coded?

Show answer
Explanation

Both examples use positions 3,4,5,1,2. Taking those positions from STORM gives O,R,M,S,T.

22.

A code replaces each letter with its opposite-alphabet partner: A with Z, B with Y, and so on. Which pair is incorrectly coded?

Show answer
Explanation

H=S, A=Z, N=M and D=W, so HAND must be SZMW. The other three pairs match the opposite-alphabet rule.

23.

First encode each digit using 1=A, 2=B, ..., 9=I and 0=J. Apply only the first applicable rule: (1) if the end digits are equal, replace both end letters with X; (2) otherwise, if both end digits are odd, swap their code letters; (3) otherwise, keep the basic code. What is the code for 35173?

Show answer
Explanation

Basic substitution gives CEAGC. Since the end digits are equal, rule 1 applies, producing XEAGX. No later rule is applied.

24.

Using A=1, ..., Z=26, a three-letter word is coded by adding the first letter value, twice the second, and three times the third. Which word has code 55?

Show answer
Explanation

DOG gives 4+215+37=55. CAT gives 65, HEN gives 60, and FOX gives 108. Only DOG gives 55.