Input-Output

Practice questions

Rule: in every step, an even number is halved and an odd number is increased by 5. Input: 14 9 20 7. What is Step III?

  1. 6 12 10 3
  2. 12 7 5 6
  3. 6 12 5 3
  4. 7 14 10 12
Answer and explanation

Answer: A

Apply the rule to Step II (12 7 5 6): 12 becomes 6, 7 becomes 12, 5 becomes 10, 6 becomes 3. The line is 6 12 10 3.

Rule: in every step, an even number is halved and an odd number is increased by 5. Input: 14 9 20 7. What is Step II?

  1. 7 14 10 12
  2. 6 12 10 3
  3. 12 7 10 6
  4. 12 7 5 6
Answer and explanation

Answer: D

Step I: 7 14 10 12. Step II: 7 is odd, so 12; 14 is even, so 7; 10 is even, so 5; 12 is even, so 6. The line is 12 7 5 6.

Rule: in every step, add 4 to the numbers in odd places and subtract 3 from the numbers in even places. Input: 10 20 30 40. What is Step III?

  1. 22 17 42 37
  2. 18 14 38 34
  3. 22 11 42 31
  4. 22 14 42 34
Answer and explanation

Answer: C

Step I: 14 17 34 37. Step II: 18 14 38 34. Step III: 22 11 42 31.

A machine swaps the first and last items in Step I, the second and second-last in Step II, and so on. How many steps does a line of 7 items need to be completely reversed?

  1. 2
  2. 3
  3. 4
  4. 7
Answer and explanation

Answer: B

Step 1 swaps places 1 and 7, step 2 swaps 2 and 6, step 3 swaps 3 and 5. The middle item, place 4, stays. So 3 steps.

Rule: Step I swaps the first and last items, Step II swaps the second and second-last, and so on. Input: 7 12 5 9 3 8. What is Step II?

  1. 8 3 5 9 12 7
  2. 8 12 5 9 3 7
  3. 8 3 9 5 12 7
  4. 3 8 5 9 12 7
Answer and explanation

Answer: A

Step I: 8 12 5 9 3 7. Step II swaps 12 and 3, giving 8 3 5 9 12 7.

In this machine the input has numbers 15, 62, 40 and 71 and the words rat, ink and oak. Which number moves in Step IV?

  1. 62
  2. 71
  3. 40
  4. 15
Answer and explanation

Answer: A

The numbers move in order from the largest. The largest, 71, moves in Step II, and the second largest, 62, moves in Step IV.

Rule: odd steps move the next word in dictionary order to the next free place from the left; even steps move the largest remaining number to the next free place from the right. Input: 64 hat 27 dew 85 kit 30. What is the line in the last step?

  1. dew hat kit 85 64 30 27
  2. dew hat kit 30 27 64 85
  3. kit hat dew 27 30 64 85
  4. dew hat kit 27 30 64 85
Answer and explanation

Answer: D

The words end in dictionary order on the left (dew, hat, kit) and the numbers in ascending order on the right (27, 30, 64, 85).

Rule: odd steps move the next word in dictionary order to the next free place from the left; even steps move the largest remaining number to the next free place from the right. Input: 64 hat 27 dew 85 kit 30. What is Step II?

  1. dew 64 hat 27 85 kit 30
  2. dew hat 64 27 kit 30 85
  3. dew 64 hat 27 kit 30 85
  4. hat dew 64 27 85 kit 30
Answer and explanation

Answer: C

Step I: dew moves to the left end, giving dew 64 hat 27 85 kit 30. Step II: 85 moves to the right end, giving dew 64 hat 27 kit 30 85.

Rule: odd steps move the next word in dictionary order to the next free place from the left; even steps move the largest remaining number to the next free place from the right. Input: jam 48 fig 73 axe 25. In which step is the machine complete?

  1. Step IV
  2. Step III
  3. Step V
  4. Step VI
Answer and explanation

Answer: A

Step IV moves 48 to the second place from the right, giving axe fig jam 25 48 73, which has words in dictionary order and numbers in ascending order.

Rule: odd steps move the next word in dictionary order to the next free place from the left; even steps move the largest remaining number to the next free place from the right. Input: jam 48 fig 73 axe 25. What is Step III?

  1. axe jam 48 fig 25 73
  2. axe fig jam 48 25 73
  3. axe fig jam 25 48 73
  4. fig axe jam 48 25 73
Answer and explanation

Answer: B

Step I: axe jam 48 fig 73 25. Step II: axe jam 48 fig 25 73. Step III: fig moves to second place, giving axe fig jam 48 25 73.

A machine puts the smallest number at the far right first, then the next smallest second from the right, and so on. How does the final line read from left to right?

  1. Numbers in ascending order
  2. Numbers in the input order
  3. Numbers in descending order
  4. Numbers with the largest in the middle
Answer and explanation

Answer: C

The smallest ends at the far right, then the next smallest to its left, and so on. So the largest is at the left and the line reads in descending order.

Rule: the longest word moves first to the left. Input: moon planet to cloud sun. How many steps does the machine need?

  1. 3
  2. 5
  3. 2
  4. 4
Answer and explanation

Answer: D

The order is planet, cloud, moon, sun, to. Step I: planet moon to cloud sun. Step II: planet cloud moon to sun. Step III leaves the line unchanged. Step IV: planet cloud moon sun to. So there are 4 steps.

Rule: the word last in the dictionary moves first to the left. Input: pen ant bee cow. What is the final arrangement?

  1. ant bee cow pen
  2. pen cow bee ant
  3. pen bee cow ant
  4. cow pen bee ant
Answer and explanation

Answer: B

The order is pen, cow, bee, ant. Step I leaves the line unchanged, Step II gives pen cow ant bee, and Step III gives pen cow bee ant.

Rule: the largest number moves first to the far right, then the next largest to the second place from the right, and so on. Input: 52 17 90 33 65. How many steps does the machine need?

  1. 3
  2. 2
  3. 4
  4. 5
Answer and explanation

Answer: A

Step I: 52 17 33 65 90. Step II: 65 is already second from the right, so the line is unchanged. Step III: 52 moves to third from the right, giving 17 33 52 65 90. So there are 3 steps.

Rule: the word with the fewest letters moves first to the left. Input: ox tiger cat rabbit lion. What is Step II?

  1. ox cat lion tiger rabbit
  2. ox tiger cat rabbit lion
  3. ox cat tiger rabbit lion
  4. cat ox tiger rabbit lion
Answer and explanation

Answer: C

The order is ox, cat, lion, tiger, rabbit. Step I leaves the line unchanged because ox is already first. Step II moves cat to second place, giving ox cat tiger rabbit lion.

Descending machine (largest to the left first). Input: 18 42 7 35 26. In which step does the line 42 35 26 18 7 first appear?

  1. Step I
  2. Step III
  3. Step II
  4. Step IV
Answer and explanation

Answer: B

Step I: 42 18 7 35 26. Step II: 42 35 18 7 26. Step III: 42 35 26 18 7. This is the first step at which the line appears.

Alphabetical machine (first in the dictionary goes to the front first). Input: tea oil jam fig. What is Step II?

  1. fig tea oil jam
  2. fig jam oil tea
  3. jam fig tea oil
  4. fig jam tea oil
Answer and explanation

Answer: D

Step I: fig moves to the front, giving fig tea oil jam. Step II: jam moves to second place, giving fig jam tea oil.

Ascending machine. Input: 8 15 31 22 40. How many steps does it take?

  1. 2
  2. 4
  3. 3
  4. 5
Answer and explanation

Answer: C

Steps I and II change nothing, since 8 and 15 are already in place. Step III moves 22 to third place, giving 8 15 22 31 40, which is complete. So there are 3 steps.

Ascending machine (smallest to the left first). Input: 36 14 50 22 45. How many steps does it take to finish?

  1. 3
  2. 4
  3. 5
  4. 2
Answer and explanation

Answer: B

Step III leaves 14 22 36 50 45 unchanged because 36 is already in third place. Step IV moves 45 to fourth place, giving 14 22 36 45 50. So the machine takes 4 steps.

Ascending machine (smallest to the left first). Input: 36 14 50 22 45. What is Step II?

  1. 14 22 36 50 45
  2. 14 36 50 22 45
  3. 14 22 50 36 45
  4. 14 22 36 45 50
Answer and explanation

Answer: A

Step I: 14 moves to the front, giving 14 36 50 22 45. Step II: 22 moves to second place, giving 14 22 36 50 45.

Privacy · Terms · Refunds · Delivery