Practice30Create account

A word-arrangement machine rearranges an input line of words in steps. Input: 'tree apple sun basket ocean'. Step I: 'apple tree sun basket ocean'. Following the same logic, what is Step II?

Competition practiceInput-Output
  • Aapple tree basket sun ocean
  • Bapple basket ocean tree sun
  • Capple basket sun tree ocean
  • Dapple basket tree sun ocean

Step-by-Step Solution

The machine moves the alphabetically next word to its sorted position from the left. Step I placed 'apple' first; Step II places 'basket' second, keeping the rest in order: apple basket tree sun ocean.
Answer: D) apple basket tree sun 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 rearrangement machine, given an input line, arranges all words in alphabetical order…A rearrangement machine moves, in each step, the smallest number not yet in place to the…A word-and-number arrangement machine rearranges an input line one step at a time.…A word-and-number rearrangement machine, given an input line, rearranges it step by…A word-and-number arrangement machine, when given an input line, rearranges it step by…