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, in Step II which element is third from the right end?

Competition practiceInput-Output
  • Anet
  • B33
  • C17
  • D6

Step-by-Step Solution

Step II is 'bat cap sun 17 net 6 33 48'. Counting from the right end: 48 is first, 33 is second and 6 is third. So the third element from the right is 6.
Answer: D) 6

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 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…A number arrangement machine rearranges a line of numbers by a fixed rule. In each step…