Practice30Create account

A machine rearranges words; in each step it moves the word that comes last in dictionary order (among words not yet fixed) to the leftmost unfixed position, which then becomes fixed. Input: cat lion tiger bear wolf. Step I: wolf cat lion tiger bear. Step II: wolf tiger cat lion bear. What is Step III?

Competition practiceInput-Output
  • Awolf tiger lion bear cat
  • Bwolf tiger lion cat bear
  • Cwolf lion tiger cat bear
  • Dwolf tiger cat lion bear

Step-by-Step Solution

Positions 1 and 2 are fixed as wolf and tiger. Among cat, lion and bear, 'lion' comes last in dictionary order, so it moves to the third position, giving wolf tiger lion cat bear.
Answer: B) wolf tiger lion cat bear

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 each step the smallest number not yet fixed moves to…A machine shifts a line of numbers; in each step the number at the left end moves to the…A word-rearranging machine moves one word per step: in each step the next word in…A number-arranging machine moves one number per step: in each step the smallest number…A number-arranging machine moves one number per step: in each step the largest number…