Practice30Create account

A word-and-number arrangement machine rearranges any input line in steps. In each step the largest number that has not already been shifted in an earlier step is taken out and placed at the extreme right end of the line. All the remaining elements keep their relative order, and the machine stops when no further shift is possible.
Input: 53 zebra wing 17 86 till oak 29.
Which of the following is Step 2 of the above arrangement?

Competition practiceInput-Output
  • Azebra wing 17 till oak 86 53 29
  • Bzebra wing 17 till oak 29 86 53
  • C53 zebra wing 17 till oak 29 86
  • D53 zebra wing 86 till oak 17 29

Step-by-Step Solution

Work the machine forward from the input. Step 1: 53 zebra wing 17 till oak 29 86. Step 2: zebra wing 17 till oak 29 86 53. Hence the line shown is Step 2.
Answer: B) zebra wing 17 till oak 29 86 53

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…