Practice30Create account

A word-and-number arrangement machine, when given an input line of words and numbers, rearranges it in steps. Nothing ever changes place in this machine: in each step it takes the leftmost word it has not already dealt with and writes that word backwards, letter for letter, in the very position where it stands. Numbers are never touched, and the machine stops once every word of the line has been written backwards.
Input: neem 63 tulsi 29 ghat 84 jowar.
In the last step of the above arrangement, which element is third from the left end?

Competition practiceInput-Output
  • Atulsi
  • B63
  • Ctahg
  • Dislut

Step-by-Step Solution

There are four words, so the machine runs four steps: meen 63 tulsi 29 ghat 84 jowar, then meen 63 islut 29 ghat 84 jowar, then meen 63 islut 29 tahg 84 jowar, and finally meen 63 islut 29 tahg 84 rawoj. Counting from the left in that last line — meen, 63, islut — the third element is islut. "tulsi" is the word as it stood in the input, forgetting that it too is written backwards. "63" is third from the left only if the reversed words are miscounted as one element. "tahg" is fifth from the left, the answer got by counting from the wrong end of the group of words.
Answer: D) islut

Master this topic in 30 minutes a day.

Don't just memorise the answer — build a daily practice habit.

Practice 5 Similar Questions Free →

All Input-Output practice questions

More Input-Output practice

An arrangement machine works on an input line of words and numbers in steps, using only…An arrangement machine works on an input line of words and numbers in steps, using only…A word-and-number arrangement machine, when given an input line of words and numbers,…A word-and-number arrangement machine, when given an input line of words and numbers,…An arrangement machine works on an input line of words and numbers in steps. The numbers…