Practice30Create account

A number-arrangement machine rearranges a line of numbers so that in each step the smallest number not yet arranged is placed immediately to the right of the numbers already arranged (the rest keep their order), building an ascending order from the left. Input: 34 12 7 56 23 9. How many steps are needed to complete the arrangement?

Competition practiceInput-Output
  • ASix
  • BThree
  • CFour
  • DFive

Step-by-Step Solution

Steps place 7, 9, 12, 23; after the 4th step it reads 7 9 12 23 34 56 (fully sorted), so four steps.
Answer: C) Four

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 rearranges a line of six numbers. In each step it takes the…A number-arrangement machine rearranges a line of six numbers. In each step it takes the…A number-arrangement machine rearranges a line of six numbers. In each step it takes the…A number-arrangement machine rearranges a line of six numbers. In each step it takes the…A number-arranging machine rearranges an input line of numbers in steps: in each step it…