Practice30Create account

A number-arrangement machine rearranges an input line in steps. In each step it moves the largest number that is not yet in its final position to the rightmost available place, shifting the others left; this repeats until the whole line is in ascending order. Input: 15 47 23 08 39 12. Step I: 15 23 08 39 12 47. Step II: 15 23 08 12 39 47. Which number is third from the left end in Step II?

Competition practiceInput-Output
  • A39
  • B08
  • C12
  • D23

Step-by-Step Solution

Step II is 15 23 08 12 39 47. Counting from the left (15, 23, 08), the third element is 08.
Answer: B) 08

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 an input line of words and numbers, rearranges…A word arrangement machine, when given an input line of words and numbers, rearranges…A word arrangement machine, when given an input line of words and numbers, rearranges…A word-and-number arrangement machine rearranges an input line one step at a time.…A word-and-number arrangement machine rearranges an input line one step at a time.…