Practice30Create account

A word-and-number arrangement machine rearranges any input line in steps. In each step the smallest number that has not already been shifted in an earlier step is taken out and placed at the extreme left end of the line. All the remaining elements keep their relative order, and the machine stops when no further shift is possible.
Input: torch urn 81 36 vase 54 wheel 18.
Which of the following is Step 2 of the above arrangement?

Competition practiceInput-Output
  • A36 18 torch urn 81 vase 54 wheel
  • B54 36 18 torch urn 81 vase wheel
  • C18 torch urn 81 36 vase 54 wheel
  • D54 81 torch urn 36 vase wheel 18

Step-by-Step Solution

Work the machine forward from the input. Step 1: 18 torch urn 81 36 vase 54 wheel. Step 2: 36 18 torch urn 81 vase 54 wheel. Hence the line shown is Step 2.
Answer: A) 36 18 torch urn 81 vase 54 wheel

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 rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…