Practice30Create account

A machine rearranges words in steps; each step moves the earliest-in-dictionary not-yet-arranged word to the front of the unarranged part. Example: Input: sun rain cloud wind storm; Step 1: cloud sun rain wind storm; Step 2: cloud rain sun wind storm. Following the same rule, what is Step 3?

Competition practiceInput-Output
  • Acloud rain sun storm wind
  • Bcloud storm rain sun wind
  • Ccloud rain storm wind sun
  • Dcloud rain storm sun wind

Step-by-Step Solution

After Step 2 the unarranged part is 'sun wind storm'; its earliest word is 'storm', which moves to the front of that part, giving 'cloud rain storm sun wind'.
Answer: D) cloud rain storm sun wind

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 rearranges numbers in steps; each step moves the smallest not-yet-arranged…A machine rearranges numbers in steps; each step moves the largest not-yet-arranged…A machine rearranges words into reverse dictionary order (Z to A); each step moves the…A machine arranges numbers in ascending order from the left; each step moves the…A machine arranges words in dictionary order from the left; each step moves the…