Practice30Create account

A machine moves the reverse-alphabetically first remaining word (nearest to Z) to the left end in each step. Example — Input: apple mango cherry; Step 1: mango apple cherry; Step 2: mango cherry apple. For the input 'lily rose daisy tulip', what is Step 2?

Competition practiceInput-Output
  • Atulip lily rose daisy
  • Btulip rose daisy lily
  • Crose tulip lily daisy
  • Dtulip rose lily daisy

Step-by-Step Solution

Step 1 moves 'tulip' (nearest to Z) to the front: tulip lily rose daisy. Step 2 moves the next, 'rose', to the front of the unsorted part: tulip rose lily daisy.
Answer: D) tulip rose lily daisy

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 number-arrangement machine rearranges an input in steps by moving the largest…A number-arrangement machine rearranges an input in steps by moving the smallest…A word-arrangement machine rearranges an input in steps by moving the alphabetically…A machine rearranges an input by alternating rules: Step I moves the alphabetically…A word-arrangement machine rearranges an input in steps by moving the alphabetically…