Practice30Create account

An arrangement machine works on an input line of words and numbers in steps. In each step it lifts out the two elements standing at the extreme left of the line and puts them both, in the same order as they stood, at the extreme right end. The rest of the line simply closes up, and the machine stops as soon as the line reads exactly as the input line did.
Input: 38 sitar 61 tabla 27 veena 49.
Which of the following is Step 3 of the above arrangement?

Competition practiceInput-Output
  • A27 veena 49 38 sitar 61 tabla
  • Bsitar 61 tabla 27 veena 49 38
  • C49 38 sitar 61 tabla 27 veena
  • D49 sitar 38 tabla 61 veena 27

Step-by-Step Solution

Step 1 moves 38 and sitar, in that order, to the right end: 61 tabla 27 veena 49 38 sitar. Step 2 moves 61 and tabla: 27 veena 49 38 sitar 61 tabla. Step 3 moves 27 and veena: 49 38 sitar 61 tabla 27 veena, the answer. "27 veena 49 38 sitar 61 tabla" is Step 2 and "sitar 61 tabla 27 veena 49 38" is Step 4, the two off-by-one errors. "49 sitar 38 tabla 61 veena 27" moves the same pairs but reverses each pair as it is set down, though the rule keeps their order.
Answer: C) 49 38 sitar 61 tabla 27 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,…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,…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,…