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, what will Step II be?

Competition practiceInput-Output
  • Abat cap 17 sun net 6 33 48
  • Bbat 33 cap sun 17 net 6 48
  • Cbat cap sun 17 net 6 33 48
  • Dbat cap sun net 17 6 33 48

Step-by-Step Solution

Alphabetical order of words is bat, cap, net, sun; numbers in descending order are 48, 33, 17, 6. Step I moves 'bat' left and 48 right: bat 33 sun 17 cap net 6 48. Step II moves 'cap' to the left (after bat) and 33 to the right (before 48), leaving the rest in order: bat cap sun 17 net 6 33 48.
Answer: C) bat cap sun 17 net 6 33 48

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 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.…