Practice30Create account

A word-and-number arrangement machine rearranges any input line in steps, alternating between two shifts. In every odd-numbered step (Step 1, 3, 5, ...) the largest number that has not already been shifted in an earlier step is taken out and placed at the extreme left end of the line. In every even-numbered step (Step 2, 4, 6, ...) the word that comes first in alphabetical order among the words not already 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: bloom 93 cedar 26 dune 71 elm 44.
In Step 4 of the above arrangement, which element is second from the left end?

Competition practiceInput-Output
  • A26
  • Bdune
  • C71
  • D93

Step-by-Step Solution

Step 1: 93 bloom cedar 26 dune 71 elm 44. Step 2: 93 cedar 26 dune 71 elm 44 bloom. Step 3: 71 93 cedar 26 dune elm 44 bloom. Step 4: 71 93 26 dune elm 44 bloom cedar. Counting from the left end of Step 4, the second element is "93".
Answer: D) 93

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