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: sun 45 moon 18 star 63 sky 27. Which element is at the fourth position from the left in Step II?

Competition practiceInput-Output
  • A18
  • Bsun
  • Cmoon
  • D45

Step-by-Step Solution

Step I moves 18: 18 sun 45 moon star 63 sky 27. Step II moves 27: 27 18 sun 45 moon star 63 sky. The fourth element from the left is 45.
Answer: D) 45

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 arrangement machine, given an input line, rearranges it by a fixed…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…