Practice30Create account

A word-and-number arrangement machine rearranges any input line in steps. In each step the word that comes last in alphabetical order among the words not already 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: jar 66 knob 23 lotus 95 mint 51.
How many steps are needed to complete the rearrangement of the above input?

Competition practiceInput-Output
  • A5
  • B3
  • C4
  • D6

Step-by-Step Solution

Each step fixes one element that the rule targets, and the last step is Step 4: 66 23 95 51 mint lotus knob jar. No further shift is possible after that, so 4 steps are needed.
Answer: C) 4

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…