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: 58 cat 21 dog 34 ant 12. In the final arrangement, which element is at the extreme right?

Competition practiceInput-Output
  • A58
  • Bant
  • Cdog
  • D12

Step-by-Step Solution

Final arrangement is 'ant cat dog 12 21 34 58', so the extreme-right element is 58 (the largest number).
Answer: A) 58

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