Practice30Create account

An arrangement machine rearranges an input line of words step by step by one fixed rule. Example — Input: mango apple orange banana; Step I: apple mango orange banana; Step II: apple banana mango orange. Following the same rule, for the input 'sun rain cloud moon', what will Step II be?

Competition practiceInput-Output
  • Acloud moon rain sun
  • Bcloud moon sun rain
  • Cmoon cloud sun rain
  • Dcloud sun rain moon

Step-by-Step Solution

Each step moves the word earliest in alphabetical order to the front of the unsorted part. Step I: cloud sun rain moon; Step II places moon next: cloud moon sun rain.
Answer: B) cloud moon sun rain

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

An arrangement machine rearranges an input line of words step by step by one fixed rule.…An arrangement machine rearranges an input line of numbers step by step by one fixed…An arrangement machine rearranges an input line of numbers step by step by one fixed…A number-arranging machine, in each step, moves the smallest not-yet-placed number to…A number-arranging machine, in each step, moves the largest not-yet-placed number to the…