Practice30Create account

A word-and-number arrangement machine rearranges any input line in steps. In each step the word that comes first 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: 59 32 gate hive 88 iron 14 jute.
At which step of the above arrangement does the line "59 32 88 iron 14 jute gate hive" appear?

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

Step-by-Step Solution

Step 1: 59 32 hive 88 iron 14 jute gate. Step 2: 59 32 88 iron 14 jute gate hive. The line quoted matches Step 2.
Answer: C) Step 2

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, alternating…