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 1, which element is second from the right?

Competition practiceInput-Output
  • A42
  • B8
  • Cbee
  • D23

Step-by-Step Solution

Step 1 is 'ant cat 15 dog 8 23 bee 42', so counting from the right the second element is bee.
Answer: C) 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 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…A number-arranging machine rearranges its input in steps. In each step it moves the…