IAE Academy

APTITUDE PRACTICE · LOGICAL REASONING

Coding and decoding: aptitude questions

10 questions for the aptitude round of campus placement tests, each with its answer and working. Try each one before you open the answer.

Companies do not publish their test papers; these questions are ours.

The questions

  1. QUESTION 1

    In a certain code, each letter is replaced by the letter 3 places ahead of it in the alphabet. How is BOOK written in this code?

    1. (A)

      EQQN

    2. (B)

      FRRN

    3. (C)

      ERRM

    4. (D)

      ERRN

    Answer and solution

    Answer: (D)

    1. The rule is: move each letter 3 places forward.

    2. B becomes E, O becomes R, O becomes R.

    3. K becomes N.

    4. So BOOK is written ERRN.

  2. QUESTION 2

    In a certain code language, rice is called wheat, wheat is called maize, maize is called oats and oats is called ragi. In this code, what is real wheat called?

    1. (A)

      Rice

    2. (B)

      Wheat

    3. (C)

      Maize

    4. (D)

      Oats

    Answer and solution

    Answer: (C)

    1. The grain in question is real wheat.

    2. In the code, wheat is called maize.

    3. So real wheat is called maize. The answer is C.

  3. QUESTION 3

    In a code, each letter is replaced by its position number in the alphabet and the numbers are written together without gaps. For example, CAB is written 312. How is FACE written?

    1. (A)

      6135

    2. (B)

      6315

    3. (C)

      5136

    4. (D)

      6153

    Answer and solution

    Answer: (A)

    1. Check with the example: C is 3, A is 1, B is 2, so CAB is 312.

    2. F is 6, A is 1, C is 3, E is 5.

    3. Written together, FACE is 6135.

  4. QUESTION 4

    In a code, each letter is replaced by a number that is one more than its position in the alphabet. For example, BAT is written 3 2 21. Which word is written as 21 10 14 6?

    1. (A)

      TIME

    2. (B)

      UJNF

    3. (C)

      SHLD

    4. (D)

      TILE

    Answer and solution

    Answer: (A)

    1. Check with the example: B is 2, plus 1 gives 3. A is 1, plus 1 gives 2. T is 20, plus 1 gives 21.

    2. To decode, subtract 1 from each number: 20, 9, 13, 5.

    3. Positions 20, 9, 13, 5 are T, I, M, E.

    4. The word is TIME.

  5. QUESTION 5

    In a code, the 1st letter of a word is moved 1 place forward, the 2nd letter 2 places forward, the 3rd letter 3 places forward, and the 4th letter 4 places forward. How is LAMP written in this code?

    1. (A)

      MCOT

    2. (B)

      MDPT

    3. (C)

      NCPT

    4. (D)

      MCPT

    Answer and solution

    Answer: (D)

    1. L moved 1 place forward is M.

    2. A moved 2 places forward is C.

    3. M moved 3 places forward is P.

    4. P moved 4 places forward is T.

    5. So LAMP is written MCPT.

  6. QUESTION 6

    In a code, each letter is replaced by the letter that sits at the same distance from the other end of the alphabet. So A becomes Z, B becomes Y, C becomes X, and so on. How is HOT written in this code?

    1. (A)

      RLG

    2. (B)

      SLG

    3. (C)

      SKG

    4. (D)

      TLG

    Answer and solution

    Answer: (B)

    1. A letter at position n becomes the letter at position 27 minus n.

    2. H is 8, so it becomes position 19, which is S.

    3. O is 15, so it becomes position 12, which is L.

    4. T is 20, so it becomes position 7, which is G.

    5. So HOT is written SLG.

  7. QUESTION 7

    In a certain code, PLAN is written as NJYL. Using the same rule, how is ZONE written?

    1. (A)

      BQPG

    2. (B)

      XMKC

    3. (C)

      XMLC

    4. (D)

      YNMD

    Answer and solution

    Answer: (C)

    1. Compare PLAN with NJYL: P to N, L to J, A to Y, N to L.

    2. Each letter moves 2 places backward. A moves back to Y by going round the end of the alphabet.

    3. Z goes to X, O goes to M, N goes to L, E goes to C.

    4. So ZONE is written XMLC.

  8. QUESTION 8

    In a certain code language:

    • "fresh green leaf" is written "ma to ri"
    • "green leaf falls" is written "to ri su"
    • "fresh leaf grows" is written "ri ma na"

    The code words are not necessarily in the same order as the words. What is the code for "green"?

    1. (A)

      ma

    2. (B)

      ri

    3. (C)

      to

    4. (D)

      su

    Answer and solution

    Answer: (C)

    1. The word "leaf" is in all three sentences. The code word "ri" is in all three, so leaf is ri.

    2. "fresh" is in sentences 1 and 3. The code words common to those two are ma and ri. Ri is leaf, so fresh is ma.

    3. Sentence 1 is "ma to ri". Removing ma (fresh) and ri (leaf) leaves to for green.

    4. So the code for green is to.

  9. QUESTION 9

    A word is coded in two steps. First, each letter is moved 2 places forward in the alphabet. Then the whole word is written in reverse order. The coded word is PKQE. What was the original word?

    1. (A)

      NIOC

    2. (B)

      GSMR

    3. (C)

      COIN

    4. (D)

      COIL

    Answer and solution

    Answer: (C)

    1. Undo the last step first. Reverse PKQE to get EQKP.

    2. Undo the first step. Move each letter 2 places backward.

    3. E becomes C, Q becomes O, K becomes I, P becomes N.

    4. The original word is COIN.

  10. QUESTION 10Type the answer

    In a code, the value of a letter is its position number in the alphabet, so A is 1 and Z is 26. The code number of a word is the sum of the values of the letters at its even places minus the sum of the values of the letters at its odd places. Places are counted from the left, starting at 1. Find the code number of PLANET.

    Answer and solution

    Answer:

    1. The values are P = 16, L = 12, A = 1, N = 14, E = 5, T = 20.

    2. Odd places are 1, 3 and 5: P, A, E. Their sum is 16 + 1 + 5 = 22.

    3. Even places are 2, 4 and 6: L, N, T. Their sum is 12 + 14 + 20 = 46.

    4. Even sum minus odd sum is 46 - 22 = 24.

    5. The code number is 24.

More practice

More logical reasoning: Number and letter series · Blood relations · Directions and distances · Seating arrangements and puzzles · Syllogisms and statements · Data sufficiency · Clocks and calendars

Past GATE aptitude questions, solved: General Aptitude

Every topic with its answers, to print or keep: one PDF (1.9 MB)

All aptitude topics