Practice30Create account

A word-and-number arranging machine, given an input line, produces a final arrangement in which all the words come first in alphabetical order (from the left) followed by all the numbers in ascending order. Input: 35 river 18 lake 42 pond 7 sea. What is the final arrangement?

Competition practiceInput-Output
  • A7 18 35 42 lake pond river sea
  • Bsea river pond lake 7 18 35 42
  • Clake pond river sea 42 35 18 7
  • Dlake pond river sea 7 18 35 42

Step-by-Step Solution

Words alphabetically = lake, pond, river, sea; numbers ascending = 7, 18, 35, 42.
Answer: D) lake pond river sea 7 18 35 42

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, given an input line, produces a final arrangement…A word-and-number arranging machine, given an input line, produces a final arrangement…A number-arranging machine, in each step, moves the largest of the numbers not yet…A word-arranging machine, in each step, moves the word that comes first in alphabetical…A machine, in each step, moves the smallest number to the far right end, shifting the…