Practice30Create account

A word-arranging machine rearranges an input line one step at a time. Example — Input: 'sun and moon are bright'; Step I: 'and sun moon are bright'; Step II: 'and are sun moon bright'. (Each step moves the next word in alphabetical order into the next position from the left.) For the Input 'cat dog ant bee zoo', what is Step I?

Competition practiceInput-Output
  • Aant bee cat dog zoo
  • Bant cat bee dog zoo
  • Cant cat dog bee zoo
  • Dcat dog ant bee zoo

Step-by-Step Solution

Step I moves the alphabetically first word 'ant' to the front, leaving the rest in place: ant cat dog bee zoo.
Answer: C) ant cat dog bee zoo

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 one step at a time. Example — Input:…A number-arranging machine rearranges an input line one step at a time. Example — Input:…A word-arranging machine rearranges an input line one step at a time. Example — Input:…A number-arranging machine rearranges an input line one step at a time. Example — Input:…A word-arranging machine rearranges an input line one step at a time. Example — Input:…