Practice30Create account

A word-and-number arranging machine rearranges an input line one step at a time. In each step it moves the word that comes earliest in alphabetical order to the extreme left and the highest number to the extreme right; the other elements keep their order in between (words move only left, numbers only right). Input: cat 15 dog 8 ant 23 bee 42. In Step 2, which element is third from the left?

Competition practiceInput-Output
  • A15
  • Bdog
  • Cbee
  • Dcat

Step-by-Step Solution

Step 2 is 'ant bee cat 15 dog 8 23 42', so the third element from the left is cat.
Answer: D) cat

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-and-number arranging machine rearranges an input line one step at a time. In each…A number-arrangement machine rearranges an input line of numbers step by step. In each…A number-arrangement machine rearranges an input line of numbers step by step. In each…A number-arrangement machine rearranges an input line of numbers step by step. In each…A number-arrangement machine rearranges an input line of numbers step by step. In each…