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 '63 mango 27 apple 41 guava', which of the following is Step II?

Competition practiceInput-Output
  • Aapple 27 63 mango 41 guava
  • Bapple 27 guava 41 mango 63
  • Capple 63 mango 27 41 guava
  • Dapple 27 63 mango guava 41

Step-by-Step Solution

Step I places apple (first word) at the front: apple 63 mango 27 41 guava. Step II places 27 (smallest number) next: apple 27 63 mango 41 guava.
Answer: A) apple 27 63 mango 41 guava

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