Practice30Create account

A word-arrangement machine, in each step, shifts the alphabetically-earliest not-yet-placed word to the leftmost free position (words in between move one place right). For Input: 'tree apple orange mango', Step I is: 'apple tree orange mango'. What is Step II?

Competition practiceInput-Output
  • Aapple orange mango tree
  • Bapple mango tree orange
  • Cmango apple tree orange
  • Dapple mango orange tree

Step-by-Step Solution

After apple is placed, the next alphabetical word is mango; moving it to the second position pushes tree and orange right, giving 'apple mango tree orange'.
Answer: B) apple mango tree orange

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-arrangement machine, in each step, shifts the smallest not-yet-placed number to…A word-arrangement machine, in each step, shifts the alphabetically-earliest…A number-arrangement machine, in each step, shifts the largest not-yet-placed number to…A number-arrangement machine, given an input line, rearranges it step by step: in each…A number-arrangement machine, given an input line, rearranges it step by step: in each…