Practice30Create account

A word-arranging machine, in each step, moves the word that comes first in alphabetical order among the words not yet arranged to the left end, placing it just to the right of the words already arranged; the rest keep their order. Input: tree apple sky nest ocean. What is the arrangement after Step 2?

Competition practiceInput-Output
  • Aapple nest ocean tree sky
  • Bapple ocean nest tree sky
  • Capple nest tree sky ocean
  • Dnest apple tree sky ocean

Step-by-Step Solution

Step 1 moves 'apple' to the front: apple tree sky nest ocean. Step 2 moves the next alphabetical word 'nest': apple nest tree sky ocean.
Answer: C) apple nest tree sky ocean

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, in each step, moves the smallest number to the far right end, shifting the…A machine, in each step, moves the largest number to the far right end, shifting the…A word-and-number arranging machine rearranges an input line one step at a time. In each…A word-and-number arranging machine rearranges an input line one step at a time. In each…A word-and-number arranging machine rearranges an input line one step at a time. In each…