Coding & Decoding Interview Questions

20 Questions

Coding & Decoding

Q1

In a certain code language, CAT is written as DBU. How is DOG written?

Each letter is shifted one position forward in the alphabet. C → D A → B T → U Similarly: D → E O → P G → H Answer: EPH

Q2

In a certain code, BAT is written as YZG. How is DOG written?

Each letter is replaced by its opposite letter. B → Y A → Z T → G Similarly: D → W O → L G → T Answer: WLT

Q3

If APPLE is coded as 166161251, how is BALL coded?

Replace each letter with its alphabetical position. A=1, P=16, P=16, L=12, E=5 BALL: B=2, A=1, L=12, L=12 Answer: 211212

Q4

In a certain code, BOOK is written as CPPL. How is PEN written?

Each letter is shifted one position forward. B→C O→P O→P K→L P→Q E→F N→O Answer: QFO

Q5

If COMPUTER is coded as RFUVQNPC, how is KEYBOARD coded?

The word is written in reverse order. COMPUTER → RETUPMOC Similarly: KEYBOARD → DRAOBYEK Answer: DRAOBYEK

Q6

In a certain code language, DELHI is written as EFMIJ. How is INDIA written?

Each letter is shifted one step forward. I→J N→O D→E I→J A→B Answer: JOEJB

Q7

If SOUTH is coded as TPVUI, how is NORTH coded?

Each letter is increased by one. N→O O→P R→S T→U H→I Answer: OPSUI

Q8

If TRAIN is coded as 20-18-1-9-14, how is PLANE coded?

Replace letters with their alphabetical positions. P=16 L=12 A=1 N=14 E=5 Answer: 16-12-1-14-5

Q9

In a code language, MANGO is written as NZOHQ. How is GRAPE written?

Each letter is shifted one step forward. G→H R→S A→B P→Q E→F Answer: HSBQF

Q10

If TABLE is coded as GZYOV, how is CHAIR coded?

Letters are replaced by opposite alphabet letters. C→X H→S A→Z I→R R→I Answer: XSZIR

Q11

In a certain code, 123 is written as 234. How is 567 written?

Each digit is increased by 1. 5→6 6→7 7→8 Answer: 678

Q12

If MILK is coded as NKML, how is BOOK coded?

Adjacent letters are interchanged. B O O K → O B K O Answer: OBKO

Q13

If ROAD is coded as URDG, how is GAME coded?

Each letter is shifted three places forward. G→J A→D M→P E→H Answer: JDPH

Q14

In a certain code language, SKY is written as 19-11-25. How is SUN written?

Replace letters with alphabetical positions. S=19 U=21 N=14 Answer: 19-21-14

Q15

If FLOWER is coded as GMPXFS, how is GARDEN coded?

Each letter is shifted one step forward. G→H A→B R→S D→E E→F N→O Answer: HBSEFO

Q16

If PEN is coded as 35 and INK is coded as 34, how is BOX coded?

Add alphabetical positions. B=2 O=15 X=24 2 + 15 + 24 = 41 Answer: 41

Q17

In a code language, WATER is written as XBUFS. How is JUICE written?

Each letter is shifted one position forward. J→K U→V I→J C→D E→F Answer: KVJDF

Q18

If GOLD is coded as 47 and SILVER is coded as 85, how is BOOK coded?

Add alphabetical positions. B=2 O=15 O=15 K=11 2+15+15+11 = 43 Answer: 43

Q19

In a certain code, FACE is written as GBDF. How is HAND written?

Each letter is shifted one step forward. H→I A→B N→O D→E Answer: IBOE

Q20

If FRIEND is coded as HUMFOE, how is PEOPLE coded?

Letters in odd positions are shifted +2 and even positions are shifted -1. P→R E→D O→Q P→O L→N E→D Answer: RDQOND