Practice30Create account

A rearrangement machine moves, in each step, the smallest number not yet in place to the next position from the left (selection into ascending order). Input: 63 12 45 27 38. Step I: 12 63 45 27 38. Step II: 12 27 63 45 38. What will Step III be?

Competition practiceInput-Output
  • A12 27 38 45 63
  • B12 27 38 63 45
  • C12 27 63 38 45
  • D12 27 45 63 38

Step-by-Step Solution

After Step II the line is 12 27 63 45 38. Among the not-yet-placed numbers (63, 45, 38) the smallest is 38; it moves to the third position, giving 12 27 38 63 45.
Answer: B) 12 27 38 63 45

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 an input line one step at a time.…A word-and-number rearrangement machine, given an input line, rearranges it step by…A word-and-number arrangement machine, when given an input line, rearranges it step by…A word-and-number arrangement machine, when given an input line, rearranges it step by…A word-and-number machine rearranges an input line in steps. Input: 'gone 34 far 17 tree…