Practice30Create account

A word-and-number arranging machine, given an input line, rearranges it in steps. Rule: in each step the smallest number not yet moved is placed at the extreme left end and all other elements shift one place to the right. Input: cat 34 dog 12 box 56 ant 28. In the final step, which element is at the extreme left?

Competition practiceInput-Output
  • Acat
  • B28
  • C56
  • D12

Step-by-Step Solution

Numbers move left in the order 12, 28, 34, 56. The last (largest) number moved, 56, ends up at the extreme left in the final step.
Answer: C) 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 word-and-number rearranging machine rearranges a given input line one step at a time.…A word-and-number rearranging machine rearranges a given input line one step at a time.…A word-and-number rearranging machine rearranges a given input line one step at a time.…A word-and-number rearranging machine rearranges a given input line one step at a time.…A word-arrangement machine, given an input line, rearranges it in steps. In each step…