Practice30Create account

A machine rearranges words into reverse dictionary order (Z to A); each step moves the last-in-dictionary not-yet-arranged word to the front of the unarranged part. Example: Input: ant bee cat dog elk; Step 1: elk ant bee cat dog; Step 2: elk dog ant bee cat. Following the same rule, what is Step 3?

Competition practiceInput-Output
  • Aelk dog bee cat ant
  • Belk dog cat ant bee
  • Celk dog ant bee cat
  • Delk dog cat bee ant

Step-by-Step Solution

After Step 2 the unarranged part is 'ant bee cat'; its last word in dictionary order is 'cat', which moves to the front of that part, giving 'elk dog cat ant bee'.
Answer: B) elk dog cat ant bee

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 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…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…