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: 38 tabla 47 sitar 26 veena.
Which of the following is Step 2 of the above arrangement?

Competition practiceInput-Output
  • A38 albat 47 sitar 26 veena
  • B38 albat 47 ratis 26 veena
  • C38 albat 47 ratis 26 aneev
  • D38 tabla 47 ratis 26 aneev

Step-by-Step Solution

The words are dealt with from the left. Step 1 turns tabla into albat: 38 albat 47 sitar 26 veena. Step 2 turns sitar into ratis: 38 albat 47 ratis 26 veena, the answer. "38 albat 47 sitar 26 veena" is Step 1, one step short. "38 albat 47 ratis 26 aneev" is Step 3, the last step, one step too far. "38 tabla 47 ratis 26 aneev" works the words from the right-hand end instead of the left.
Answer: B) 38 albat 47 ratis 26 veena

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

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, 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,…