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. At which step does the line become '34 12 09 45 78 56'?

Competition practiceInput-Output
  • AStep IV
  • BStep II
  • CStep I
  • DStep III

Step-by-Step Solution

Step I: 09 45 12 78 34 56; Step II: 12 09 45 78 34 56; Step III moves 34 to the front, giving 34 12 09 45 78 56.
Answer: D) Step III

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