Practice30Create account

A number-arranging machine rearranges an input line of numbers in steps: in each step it moves the smallest of the not-yet-arranged numbers to the position just right of the numbers already arranged, building ascending order from the left; it stops when all numbers are in ascending order. Input: 45 23 78 12 56. What is Step 1?

Competition practiceInput-Output
  • A12 45 23 56 78
  • B12 23 78 45 56
  • C12 45 23 78 56
  • D12 23 45 56 78

Step-by-Step Solution

The smallest number 12 is moved to the left end while the rest keep their order, giving 12 45 23 78 56.
Answer: C) 12 45 23 78 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-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:…A word-and-number arranging machine, given an input line, rearranges it in steps. Rule:…A word-and-number arranging machine, given an input line, rearranges it in steps. Rule:…