Practice30Create account

A word-and-number machine rearranges an input line in steps. Worked example — Input: gap 28 for 15 hut 40 ink 9; Step I: for gap 28 15 hut ink 9 40; Step II: for gap 15 hut ink 9 28 40; Step III: for gap hut ink 9 15 28 40 (final). In each step the alphabetically next word is moved to the left end and the numerically largest remaining number is moved to the right end, while the rest keep their order. For the Input: bat 33 sun 17 cap 48 net 6, how many steps are needed to reach the final arrangement?

Competition practiceInput-Output
  • AThree
  • BTwo
  • CFour
  • DFive

Step-by-Step Solution

Step I: bat 33 sun 17 cap net 6 48. Step II: bat cap sun 17 net 6 33 48. Step III: bat cap net sun 6 17 33 48 (fully arranged). The final arrangement is reached in three steps.
Answer: A) Three

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 machine rearranges an input line in steps. Worked example — Input: gap…A word-and-number arrangement machine rearranges an input line one element per step.…A word-and-number arrangement machine rearranges an input line one element per step.…A word-and-number arrangement machine rearranges an input line one element per step.…A number arrangement machine rearranges a line of numbers by a fixed rule. In each step…