Practice30Create account

A word-and-number arrangement machine rearranges an input line one element per step. Illustration — Input: 34 cat 61 apple 27 dog. Step I: apple 34 cat 61 27 dog. Step II: apple 27 34 cat 61 dog. Step III: apple 27 cat 34 61 dog. Step IV: apple 27 cat 34 dog 61 (last step). The rule places words in alphabetical order and numbers in ascending order, alternately, from the left. For the input '38 zebra 19 kite 55 ant', which of the following is the last step of the rearrangement?

Competition practiceInput-Output
  • Aant 38 zebra 19 kite 55
  • Bant 19 kite 38 zebra 55
  • Cant 19 kite 38 55 zebra
  • Dant 19 zebra 38 kite 55

Step-by-Step Solution

Words alphabetically: ant, kite, zebra; numbers ascending: 19, 38, 55; alternated from the left gives the final line ant 19 kite 38 zebra 55.
Answer: B) ant 19 kite 38 zebra 55

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