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: ash birch 73 29 cane 56 deer 84.
Which of the following is Step 3 of the above arrangement?

Competition practiceInput-Output
  • Aash birch cane deer 29 56 73 84
  • Bash birch 73 cane deer 84 29 56
  • Cash birch 29 cane deer 84 73 56
  • Dash birch cane deer 84 29 56 73

Step-by-Step Solution

Work the machine forward from the input. Step 1: ash birch 73 cane 56 deer 84 29. Step 2: ash birch 73 cane deer 84 29 56. Step 3: ash birch cane deer 84 29 56 73. Hence the line shown is Step 3.
Answer: D) ash birch cane deer 84 29 56 73

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…