Practice30Create account

A word-and-number arrangement machine rearranges any input line in steps. In each step the smallest number that has not already been shifted in an earlier step is taken out and placed at the extreme right end of the line. All the remaining elements keep their relative order, and the machine stops when no further shift is possible.
Input: axe 42 beam coal 97 23 drum 76 31 echo.
In the last step of the above arrangement, which element is third from the right end?

Competition practiceInput-Output
  • Acoal
  • B42
  • Cdrum
  • Daxe

Step-by-Step Solution

The machine finishes in 5 steps. Last step (Step 5): axe beam coal drum echo 23 31 42 76 97. Counting from the right end, the third element is "42".
Answer: B) 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 arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…