Practice30Create account

A word-arrangement machine, when given a line of words, rearranges them step by step. In each step it moves the word that is alphabetically earliest among the words not yet placed to the next free position from the left; the remaining words keep their order. Input: orange fig mango apple grape. What is the arrangement after Step I?

Competition practiceInput-Output
  • Aorange apple fig mango grape
  • Bapple fig orange mango grape
  • Capple orange fig grape mango
  • Dapple orange fig mango grape

Step-by-Step Solution

'apple' is alphabetically earliest, so it moves to position 1 while the rest keep their order: apple orange fig mango grape.
Answer: D) apple orange fig mango grape

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 word-arrangement machine, when given a line of words, rearranges them step by step. In…A word-arrangement machine, when given a line of words, rearranges them step by step. In…A word-arrangement machine, when given a line of words, rearranges them step by step. In…A word-and-number arranging machine rearranges an input line step by step. In each step…A word-and-number arranging machine rearranges an input line step by step. In each step…