Coding & Decoding
20 Questions
Practice Problems
Coding & Decoding Interview Questions
20 Questions
Coding & Decoding
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
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
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
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
If COMPUTER is coded as RFUVQNPC, how is KEYBOARD coded?
The word is written in reverse order. COMPUTER → RETUPMOC Similarly: KEYBOARD → DRAOBYEK Answer: DRAOBYEK
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
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
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
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
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
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
If MILK is coded as NKML, how is BOOK coded?
Adjacent letters are interchanged. B O O K → O B K O Answer: OBKO
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
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
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
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
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
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
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
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