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: 27 blue 14 red 39 green 5. In the final arrangement, which element is fourth from the left?

Competition practiceInput-Output
  • A14
  • B5
  • Cgreen
  • Dred

Step-by-Step Solution

Final arrangement is 'blue green red 5 14 27 39', so the fourth element from the left is 5.
Answer: B) 5

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 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…A machine, in each step, moves the largest number to the far right end, shifting the…