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 left end of the line. All the remaining elements keep their relative order, and the machine stops when no further shift is possible.
Input: 34 violet 91 hill 57 cloud 12 jam.
Which of the following is Step 2 of the above arrangement?

Competition practiceInput-Output
  • Ajam hill cloud 34 violet 91 57 12
  • Bcloud 34 violet 91 hill 57 12 jam
  • Chill cloud 34 violet 91 57 12 jam
  • Djam violet 34 91 hill 57 cloud 12

Step-by-Step Solution

Work the machine forward from the input. Step 1: cloud 34 violet 91 hill 57 12 jam. Step 2: hill cloud 34 violet 91 57 12 jam. Hence the line shown is Step 2.
Answer: C) hill cloud 34 violet 91 57 12 jam

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…