Practice30Create account

An input-output arrangement machine rearranges a line of words and numbers one step at a time, always by the same rule. The rule is not stated, but it can be read off the run below.
Input: tonga 36 rickshaw 58 bullock 27.
Step 1: 36 tonga rickshaw 58 bullock 27.
Step 2: 36 58 tonga rickshaw bullock 27.
Working by the same rule, which of the following is Step 2 for the input line: pudding 47 cheese 19 beans 83?

Competition practiceInput-Output
  • A47 pudding cheese 19 beans 83
  • B47 19 83 pudding cheese beans
  • C47 19 pudding cheese beans 83
  • D19 47 pudding cheese beans 83

Step-by-Step Solution

In the run shown, the numbers are being gathered at the left end one per step, in the order in which they stand in the input, and the rest of the line closes up behind them. Applying that to pudding 47 cheese 19 beans 83: Step 1 brings 47 to the front — 47 pudding cheese 19 beans 83. Step 2 brings 19 to the place just after 47 — 47 19 pudding cheese beans 83, the answer. "47 pudding cheese 19 beans 83" is Step 1 and "47 19 83 pudding cheese beans" is Step 3. "19 47 pudding cheese beans 83" gathers the numbers in ascending order of value, whereas the shown run keeps the order in which they stood.
Answer: C) 47 19 pudding cheese beans 83

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

An arrangement machine works on an input line of words and numbers in steps. In each…A word-and-number arrangement machine, when given an input line of words and numbers,…A word-rearranging machine, given an input line of words, produces one step per pass.…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…