Practice30Create account

A word-arrangement machine, given an input line, rearranges it in steps. In each step the word that comes first in alphabetical order among the remaining words is moved to the left end, the rest shifting right in the same order. Input: 46 cat 73 ant 28 dog 15 bee. How many steps are needed to complete the arrangement (all words placed alphabetically on the left)?

Competition practiceInput-Output
  • AFour
  • BThree
  • CSix
  • DFive

Step-by-Step Solution

The four words ant, bee, cat, dog are placed one per step, so after Step IV (ant bee cat dog 46 73 28 15) the arrangement is complete — four steps.
Answer: A) Four

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 number-arranging machine rearranges an input line of numbers in steps. In each step it…A number-arranging machine rearranges an input line of numbers in steps. In each step it…A word-arranging machine rearranges an input line of words in steps. In each step it…A word-arranging machine rearranges an input line of words in steps. In each step it…A word-arrangement machine, in each step, shifts the alphabetically-earliest…