Practice30Create account

A word-and-number arrangement machine, given an input line, rearranges it by a fixed rule. Example — Input: cat 34 dog 12 box 56 art 9; Step I: 9 cat 34 dog 12 box 56 art; Step II: 12 9 cat 34 dog box 56 art; Step III: 34 12 9 cat dog box 56 art; Step IV: 56 34 12 9 cat dog box art. (In each step the smallest number not yet moved is shifted to the extreme left.) Apply the same rule to Input: red 30 blue 11 pink 48 gold 22. What will Step III be?

Competition practiceInput-Output
  • A48 30 22 11 red blue pink gold
  • B30 22 11 red blue pink gold 48
  • C30 22 11 red blue pink 48 gold
  • D22 11 red 30 blue pink 48 gold

Step-by-Step Solution

Step I moves 11: 11 red 30 blue pink 48 gold 22. Step II moves 22: 22 11 red 30 blue pink 48 gold. Step III moves 30: 30 22 11 red blue pink 48 gold.
Answer: C) 30 22 11 red blue pink 48 gold

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 step by step. Example —…A number-arranging machine rearranges an input line of numbers step by step. Example —…A number-arranging machine rearranges an input line of numbers step by step. Example —…A number-arrangement machine, given an input row of numbers, rearranges it in steps. In…A number-arrangement machine, given an input row of numbers, rearranges it in steps. In…