Practice30Create account

A number-arrangement machine rearranges a line of six numbers. In each step it takes the smallest number not yet moved and shifts it to the extreme left end, the other numbers keeping their relative order; it continues until the numbers are in descending order. Input: 45 12 78 34 09 56. What is the arrangement at Step II?

Competition practiceInput-Output
  • A12 09 45 78 34 56
  • B09 45 12 78 34 56
  • C09 12 45 78 34 56
  • D34 12 09 45 78 56

Step-by-Step Solution

Step I moves 09 to the left (09 45 12 78 34 56); Step II moves the next smallest, 12, to the left, giving 12 09 45 78 34 56.
Answer: A) 12 09 45 78 34 56

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-arranging machine rearranges an input line of numbers in steps: in each step it…A number-arranging machine rearranges an input line of numbers in steps: in each step it…