Practice30Create account

A word machine brings, in each step, the word earliest in alphabetical order among the unarranged words to the leftmost unarranged position (others keep order). Example — Input: mango apple lemon → Step I: apple mango lemon → Step II: apple lemon mango. For the input 'tiger bear wolf ant', what is Step I?

Competition practiceInput-Output
  • Aant bear tiger wolf
  • Bant bear wolf tiger
  • Cbear ant tiger wolf
  • Dant tiger bear wolf

Step-by-Step Solution

The alphabetically earliest word is 'ant', which moves to the front while the others keep order, giving 'ant tiger bear wolf'.
Answer: D) ant tiger bear wolf

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 brings, in each step, the smallest not-yet-placed number to the leftmost…An arrangement machine rearranges an input line of numbers step by step by one fixed…An arrangement machine rearranges an input line of numbers step by step by one fixed…An arrangement machine rearranges an input line of words step by step by one fixed rule.…An arrangement machine rearranges an input line of words step by step by one fixed rule.…