Practice30Create account

A word-arrangement machine rearranges an input in steps by moving the alphabetically earliest not-yet-placed word to the left end each step. Example — Input: cat ox ant bee; Step I: ant cat ox bee; Step II: ant bee cat ox. For the input 'dog fig ape cup', what is Step II?

Competition practiceInput-Output
  • Acup ape dog fig
  • Bape cup fig dog
  • Cape dog cup fig
  • Dape cup dog fig

Step-by-Step Solution

Step I moves 'ape' to the left: ape dog fig cup. Step II moves the next word alphabetically, 'cup', to the left after 'ape': ape cup dog fig.
Answer: D) ape cup dog fig

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 machine rearranges an input by alternating rules: Step I moves the alphabetically…A word-arrangement machine rearranges an input in steps by moving the alphabetically…A number-arrangement machine rearranges an input in steps by moving the smallest…A number-arranging machine moves the largest remaining number to the front at each step.…A word-arranging machine moves words to the left in alphabetical order, one per step.…