Practice30Create account

A machine arranges words in dictionary order from the left; each step moves the earliest-in-dictionary not-yet-arranged word to the front of the unarranged part. Example: Input: tiger lion zebra bear fox; Step 1: bear tiger lion zebra fox; Step 2: bear fox tiger lion zebra. Following the same rule, what is Step 3?

Competition practiceInput-Output
  • Abear fox tiger lion zebra
  • Bbear fox lion zebra tiger
  • Cbear fox lion tiger zebra
  • Dbear fox tiger zebra lion

Step-by-Step Solution

After Step 2 the unarranged part is 'tiger lion zebra'; its earliest word is 'lion', which moves to the front of that part, giving 'bear fox lion tiger zebra'.
Answer: C) bear fox lion tiger zebra

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 word-arranging machine, in each step, moves the word that comes earliest in dictionary…A number machine, in each step, moves the largest of the not-yet-placed numbers to the…A number machine, in each step, moves the smallest of the not-yet-placed numbers to the…A word machine, in each step, moves the word that comes last in dictionary order among…A machine processes a line of words and numbers. In each step it moves the smallest…