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 left end of the line. All the remaining elements keep their relative order, and the machine stops when no further shift is possible.
Input: nut 93 palm 26 quilt 71 sand 44.
Which of the following is Step 3 of the above arrangement?

Competition practiceInput-Output
  • Anut palm quilt sand 93 26 71 44
  • Bquilt sand nut 93 palm 26 71 44
  • Cpalm quilt sand nut 93 26 71 44
  • Dquilt palm nut 93 26 71 sand 44

Step-by-Step Solution

Work the machine forward from the input. Step 1: sand nut 93 palm 26 quilt 71 44. Step 2: quilt sand nut 93 palm 26 71 44. Step 3: palm quilt sand nut 93 26 71 44. Hence the line shown is Step 3.
Answer: C) palm quilt sand nut 93 26 71 44

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…