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. Which word is at the extreme right end after Step II?

Competition practiceInput-Output
  • Aorange
  • Bmango
  • Cgrape
  • Dfig

Step-by-Step Solution

After Step II the line is apple fig orange mango grape, so 'grape' is at the extreme right end.
Answer: C) 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-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…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…Statements: No dependable machine is cheap. Some of the machines in this workshop are…