Practice30Create account

A word machine, in each step, moves the word that comes last in dictionary order among the not-yet-placed words to the next position from the left. Input: apple fig cherry date. Step I: fig apple cherry date. Step II: fig date apple cherry. What is the final arrangement?

Competition practiceInput-Output
  • Afig cherry date apple
  • Bfig date cherry apple
  • Capple cherry date fig
  • Dfig date apple cherry

Step-by-Step Solution

The machine arranges the words in reverse dictionary order. After fig and date, the next word is cherry, then apple, giving fig date cherry apple.
Answer: B) fig date cherry apple

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 processes a line of words and numbers. In each step it moves the smallest…A number machine, in each step, moves the largest of the not-yet-placed numbers to the…A machine moves the smallest remaining number to the left end in each step. Example —…A machine moves the alphabetically first remaining word to the left end in each step.…A machine moves the largest remaining number to the left end in each step. Example —…