Practice30Create account

A number-arrangement machine, given an input row of numbers, rearranges it in steps. In each step the smallest number not yet placed at the front is shifted to the leftmost open position, and the remaining numbers keep their relative order. Input: 47, 18, 39, 6, 23. Step I: 6, 47, 18, 39, 23. What will Step II be?

Competition practiceInput-Output
  • A6, 47, 18, 23, 39
  • B6, 18, 47, 39, 23
  • C6, 18, 23, 47, 39
  • D6, 18, 39, 47, 23

Step-by-Step Solution

After Step I, 6 is placed. The next smallest is 18, which moves to the 2nd position while 47, 39, 23 keep their order: 6, 18, 47, 39, 23.
Answer: B) 6, 18, 47, 39, 23

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 number-arrangement machine, given an input row of numbers, rearranges it in steps. In…A word-arrangement machine, given an input row of words, rearranges it in steps. In each…A word-arrangement machine, given an input row of words, rearranges it in steps. In each…A number-arranging machine rearranges a set of numbers. In each step it fixes one more…A word-and-number arrangement machine rearranges a given input line in successive steps.…