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 left end of the line. All the remaining elements keep their relative order, and the machine stops when no further shift is possible.
Input: 27 65 pond queen 43 road 91 silk.
At which step of the above arrangement does the line "43 65 91 27 pond queen road silk" appear?

Competition practiceInput-Output
  • AStep 4
  • BStep 2
  • CStep 3
  • DStep 1

Step-by-Step Solution

Step 1: 91 27 65 pond queen 43 road silk. Step 2: 65 91 27 pond queen 43 road silk. Step 3: 43 65 91 27 pond queen road silk. The line quoted matches Step 3.
Answer: C) Step 3

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…