Practice30Create account

A number-arranging machine rearranges an input line of numbers so that, in each step, the smallest number not yet placed is moved to the left end, building the ascending order from the left (the other numbers keep their relative order). Input: 38 71 25 60 14. What is Step 1 of this arrangement?

Competition practiceInput-Output
  • A14 71 38 25 60
  • B14 38 71 25 60
  • C14 25 38 71 60
  • D14 38 25 71 60

Step-by-Step Solution

The smallest number is 14; moving it to the left end while keeping the others in order gives 14 38 71 25 60.
Answer: B) 14 38 71 25 60

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-arrangement machine, when given a line of words, rearranges them step by step. In…A word-arrangement machine, when given a line of words, rearranges them step by step. In…A word-arrangement machine, when given a line of words, rearranges them step by step. In…A word-arrangement machine, when given a line of words, rearranges them step by step. In…A word-and-number arranging machine rearranges an input line step by step. In each step…