Input-Output Questions with Answers

25 practice questions on Input-Output (Analytical Reasoning) with answers and step-by-step solutions. Try 10 samples below, then practise all 25 free in the AptiNest app.

Sample questions

Question 1Medium

A word and number arrangement machine rearranges an input line step by step following a fixed rule. Here is an illustration:
Input: yellow garden tiger basket kettle table
Step I: basket yellow garden tiger kettle table
Step II: basket garden yellow tiger kettle table
Step III: basket garden kettle yellow tiger table
Step IV: basket garden kettle table yellow tiger
Step V: basket garden kettle table tiger yellow
Step V is the last step.

Following the same rule, answer the question for this input:
Input: orange hockey flower basket pencil jacket
In Step III, which element is 5th from the right end?

  1. basket
  2. orange
  3. hockey
  4. flower

Answer: D. flower

Explanation

Rule: In each step, the word that comes first in dictionary order among the words not yet arranged is moved to the left end of the unarranged part, so the words get arranged in dictionary order from the left.
Step I: basket orange hockey flower pencil jacket
Step II: basket flower orange hockey pencil jacket
Step III: basket flower hockey orange pencil jacket
Step IV: basket flower hockey jacket orange pencil

Step-by-step solution

  1. Rule: each step moves the next alphabetical word to the next place from the left; others keep their order.
  2. Sorted words: basket, flower, hockey, jacket, orange, pencil.
  3. Step III has basket, flower, hockey fixed, then the rest in original order: orange pencil jacket.
  4. Step III: basket flower hockey orange pencil jacket. 5th from the right is the 2nd from left = flower.

Why the other options are wrong

  • A. basket is 1st from the left.
  • B. orange is 4th from the left.
  • C. hockey is 3rd from the left.

Tip: 5th from the right in 6 items = 2nd from the left.

Question 2Medium

A word and number arrangement machine rearranges an input line step by step following a fixed rule. Here is an illustration:
Input: 13 81 74 18 11 67
Step I: 81 13 74 18 11 67
Step II: 81 74 13 18 11 67
Step III: 81 74 67 13 18 11
Step IV: 81 74 67 18 13 11
Step IV is the last step.

Following the same rule, answer the question for this input:
Input: 28 52 76 37 96 24
Which of the following is the last step of the arrangement?

  1. 96 76 52 24 28 37
  2. 24 76 52 37 28 96
  3. 96 76 52 37 28 24
  4. 96 76 52 28 37 24

Answer: C. 96 76 52 37 28 24

Explanation

Rule: In each step, the largest number among those not yet arranged is moved to the left end of the unarranged part, so the numbers get arranged in descending order from the left.
Step I: 96 28 52 76 37 24
Step II: 96 76 28 52 37 24
Step III: 96 76 52 28 37 24
Step IV: 96 76 52 37 28 24

Step-by-step solution

  1. Step I moves the largest number 96 to the left end.
  2. Steps II and III move 76 and 52 to the second and third places.
  3. Step IV moves 37 to the fourth place, ahead of 28, and the last two numbers 28 and 24 are already in order.
  4. So the last step is 96 76 52 37 28 24.

Why the other options are wrong

  • A. This puts 24 and 37 at the end, which breaks descending order.
  • B. The largest number 96 must come first, not 24.
  • D. This has 28 ahead of 37, but 37 is larger and must come before 28.

Question 3Medium

A word and number arrangement machine rearranges an input line step by step following a fixed rule. Here is an illustration:
Input: sugar zebra candle river number glass
Step I: candle sugar zebra river number glass
Step II: candle glass sugar zebra river number
Step III: candle glass number sugar zebra river
Step IV: candle glass number river sugar zebra
Step IV is the last step.

Following the same rule, answer the question for this input:
Input: planet flower tiger eagle orange candle
Which of the following is the last step of the arrangement?

  1. candle eagle flower planet tiger orange
  2. candle eagle tiger orange planet flower
  3. candle eagle flower orange planet tiger
  4. orange eagle flower candle planet tiger

Answer: C. candle eagle flower orange planet tiger

Explanation

Rule: In each step, the word that comes first in dictionary order among the words not yet arranged is moved to the left end of the unarranged part, so the words get arranged in dictionary order from the left.
Step I: candle planet flower tiger eagle orange
Step II: candle eagle planet flower tiger orange
Step III: candle eagle flower planet tiger orange
Step IV: candle eagle flower orange planet tiger

Step-by-step solution

  1. Each step brings the next alphabetical word to the next place at the left.
  2. Sorted: candle, eagle, flower, orange, planet, tiger.
  3. The last step is the fully sorted line.

Why the other options are wrong

  • A. orange must come before planet and tiger.
  • B. tiger must be last and planet before it.
  • D. orange cannot come first; candle is alphabetically first.

Tip: If the example ends fully sorted, the last step is just the sorted list.

Question 4Medium

A word and number arrangement machine rearranges an input line step by step following a fixed rule. Here is an illustration:
Input: violin hockey lemon sugar flower pencil
Step I: flower violin hockey lemon sugar pencil
Step II: flower hockey violin lemon sugar pencil
Step III: flower hockey lemon violin sugar pencil
Step IV: flower hockey lemon pencil violin sugar
Step V: flower hockey lemon pencil sugar violin
Step V is the last step.

Following the same rule, answer the question for this input:
Input: orange candle kettle flower eagle sugar
Which of the following is Step III?

  1. candle eagle flower orange kettle sugar
  2. sugar eagle flower orange kettle candle
  3. candle eagle flower kettle orange sugar
  4. candle eagle orange kettle flower sugar

Answer: A. candle eagle flower orange kettle sugar

Explanation

Rule: In each step, the word that comes first in dictionary order among the words not yet arranged is moved to the left end of the unarranged part, so the words get arranged in dictionary order from the left.
Step I: candle orange kettle flower eagle sugar
Step II: candle eagle orange kettle flower sugar
Step III: candle eagle flower orange kettle sugar
Step IV: candle eagle flower kettle orange sugar

Step-by-step solution

  1. Step I moves candle to the left end, since it comes first in dictionary order among the six words.
  2. Step II moves eagle to the second place, and Step III moves flower to the third place, with the rest keeping their order.
  3. So Step III is candle eagle flower orange kettle sugar.

Why the other options are wrong

  • B. Sugar cannot be at the left end, because candle comes first in dictionary order.
  • C. Kettle moves ahead of orange only in Step IV, not Step III.
  • D. This is Step II; flower is still to move up to the third place.

Question 5Medium

A word and number arrangement machine rearranges an input line step by step following a fixed rule. Here is an illustration:
Input: violin hockey lemon sugar flower pencil
Step I: flower violin hockey lemon sugar pencil
Step II: flower hockey violin lemon sugar pencil
Step III: flower hockey lemon violin sugar pencil
Step IV: flower hockey lemon pencil violin sugar
Step V: flower hockey lemon pencil sugar violin
Step V is the last step.

Following the same rule, answer the question for this input:
Input: orange candle kettle flower eagle sugar
Which of the following is the last step of the arrangement?

  1. candle kettle flower eagle orange sugar
  2. flower eagle candle kettle orange sugar
  3. candle eagle flower kettle orange sugar
  4. candle eagle flower orange kettle sugar

Answer: C. candle eagle flower kettle orange sugar

Explanation

Rule: In each step, the word that comes first in dictionary order among the words not yet arranged is moved to the left end of the unarranged part, so the words get arranged in dictionary order from the left.
Step I: candle orange kettle flower eagle sugar
Step II: candle eagle orange kettle flower sugar
Step III: candle eagle flower orange kettle sugar
Step IV: candle eagle flower kettle orange sugar

Step-by-step solution

  1. Step I moves candle to the left end, Step II moves eagle to the second place and Step III moves flower to the third place.
  2. In Step IV, kettle comes before orange in dictionary order, so kettle moves up to the fourth place.
  3. Orange and sugar are then already in dictionary order, so the arrangement stops there.
  4. So the last step is candle eagle flower kettle orange sugar.

Why the other options are wrong

  • A. Eagle should be second in dictionary order, and flower must come before kettle.
  • B. Flower cannot be at the left end, because candle comes first.
  • D. This is Step III; kettle still has to move ahead of orange.

Question 6Medium

A word and number arrangement machine rearranges an input line step by step following a fixed rule. Here is an illustration:
Input: 37 50 65 67 95 84
Step I: 95 37 50 65 67 84
Step II: 95 84 37 50 65 67
Step III: 95 84 67 37 50 65
Step IV: 95 84 67 65 37 50
Step V: 95 84 67 65 50 37
Step V is the last step.

Following the same rule, answer the question for this input:
Input: 13 19 45 64 37 63
In Step I, which element is 5th from the right end?

  1. 45
  2. 19
  3. 13
  4. 64

Answer: C. 13

Explanation

Rule: In each step, the largest number among those not yet arranged is moved to the left end of the unarranged part, so the numbers get arranged in descending order from the left.
Step I: 64 13 19 45 37 63
Step II: 64 63 13 19 45 37
Step III: 64 63 45 13 19 37
Step IV: 64 63 45 37 13 19
Step V: 64 63 45 37 19 13

Step-by-step solution

  1. Step I is 64 13 19 45 37 63, with 64 moved to the left end.
  2. Counting from the right end, 63 is 1st, 37 is 2nd, 45 is 3rd, 19 is 4th and 13 is 5th.
  3. So the 5th element from the right end is 13.

Why the other options are wrong

  • A. 45 is 3rd from the right end, not 5th.
  • B. 19 is 4th from the right end, not 5th.
  • D. 64 is at the left end, which is the 6th from the right.

Question 7Medium

A word and number arrangement machine rearranges an input line step by step following a fixed rule. Here is an illustration:
Input: yellow garden tiger basket kettle table
Step I: basket yellow garden tiger kettle table
Step II: basket garden yellow tiger kettle table
Step III: basket garden kettle yellow tiger table
Step IV: basket garden kettle table yellow tiger
Step V: basket garden kettle table tiger yellow
Step V is the last step.

Following the same rule, answer the question for this input:
Input: orange hockey flower basket pencil jacket
Which of the following is Step IV?

  1. basket flower hockey orange pencil jacket
  2. basket flower hockey jacket orange pencil
  3. basket flower orange jacket hockey pencil
  4. jacket flower hockey basket orange pencil

Answer: B. basket flower hockey jacket orange pencil

Explanation

Rule: In each step, the word that comes first in dictionary order among the words not yet arranged is moved to the left end of the unarranged part, so the words get arranged in dictionary order from the left.
Step I: basket orange hockey flower pencil jacket
Step II: basket flower orange hockey pencil jacket
Step III: basket flower hockey orange pencil jacket
Step IV: basket flower hockey jacket orange pencil

Step-by-step solution

  1. Step I moves basket to the left end, since it is first in dictionary order among the six words.
  2. Step II moves flower to the second place, and Step III moves hockey to the third place.
  3. Step IV moves jacket to the fourth place, since jacket comes before orange and pencil among the words not yet placed.
  4. So Step IV is basket flower hockey jacket orange pencil.

Why the other options are wrong

  • A. This is Step III; jacket still has to move up to the fourth place.
  • C. Hockey must come before orange and jacket, so orange cannot be placed third.
  • D. Basket must be first in dictionary order, not jacket.

Question 8Medium

A word and number arrangement machine rearranges an input line step by step following a fixed rule. Here is an illustration:
Input: sugar zebra candle river number glass
Step I: candle sugar zebra river number glass
Step II: candle glass sugar zebra river number
Step III: candle glass number sugar zebra river
Step IV: candle glass number river sugar zebra
Step IV is the last step.

Following the same rule, answer the question for this input:
Input: planet flower tiger eagle orange candle
How many steps are needed to complete the arrangement?

  1. 5
  2. 3
  3. 6
  4. 4

Answer: D. 4

Explanation

Rule: In each step, the word that comes first in dictionary order among the words not yet arranged is moved to the left end of the unarranged part, so the words get arranged in dictionary order from the left.
Step I: candle planet flower tiger eagle orange
Step II: candle eagle planet flower tiger orange
Step III: candle eagle flower planet tiger orange
Step IV: candle eagle flower orange planet tiger

Step-by-step solution

  1. Step I moves candle to the left end, since it is first in dictionary order among the six words.
  2. Step II moves eagle to the second place, Step III moves flower to the third place and Step IV moves orange to the fourth place.
  3. Planet and tiger are then already in order, so the arrangement stops.
  4. So the arrangement needs 4 steps.

Why the other options are wrong

  • A. Five steps would add a move that changes nothing, since planet and tiger are in order.
  • B. Three steps leave orange after planet and tiger, but orange comes before both.
  • C. Six steps would add moves after the line is already sorted.

Question 9Hard

A word and number arrangement machine rearranges an input line step by step following a fixed rule. Here is an illustration:
Input: 74 39 86 65 73 66 52 21
Step I: 86 74 39 65 73 66 52 21
Step II: 86 74 65 73 66 52 39 21
Step III: 86 74 73 65 66 52 39 21
Step IV: 86 74 73 66 65 52 39 21
Step IV is the last step.

Following the same rule, answer the question for this input:
Input: 44 48 84 92 63 85 70 13
How many steps are needed to complete the arrangement?

  1. 4
  2. 5
  3. 3
  4. 6

Answer: B. 5

Explanation

Rule (from the illustration): each step moves one number. The steps alternate: the largest number not yet in place goes to the leftmost free position, then the smallest number not yet in place goes to the rightmost free position; numbers already in place are skipped.
Step I: 92 44 48 84 63 85 70 13
Step II: 92 48 84 63 85 70 44 13
Step III: 92 85 48 84 63 70 44 13
Step IV: 92 85 84 63 70 48 44 13
Step V: 92 85 84 70 63 48 44 13

Step-by-step solution

  1. In the illustration each step moves only one number: 86 to the left end, then 39 next to 21 at the right, then 73, then 66.
  2. Here Step I puts 92 at the left end (13 is already at the right end).
  3. Step II puts 44 seventh, Step III puts 85 second, and Step IV puts 48 sixth.
  4. Step V puts 70 fourth, and the line 92 85 84 70 63 48 44 13 is complete.
  5. So the arrangement takes 5 steps (option B).

Why the other options are wrong

  • A. Four steps would need two numbers moved in one step, but each step moves only one number.
  • C. After three steps 84, 70 and 48 are still out of place.
  • D. After Step V the line is already in order, so a sixth step is not needed.

Tip: Copy the illustration's rule exactly: count how many numbers move in each step.

Question 10Hard

A word and number arrangement machine rearranges an input line step by step following a fixed rule. Here is an illustration:
Input: 41 12 35 44 30 54 28 93
Step I: 93 41 35 44 30 54 28 12
Step II: 93 54 41 35 44 30 28 12
Step III: 93 54 44 41 35 30 28 12
Step III is the last step.

Following the same rule, answer the question for this input:
Input: 30 88 33 36 81 82 26 89
In Step II, which element is 6th from the right end?

  1. 33
  2. 88
  3. 36
  4. 89

Answer: A. 33

Explanation

Rule: In each step, the largest of the unarranged numbers is placed at the leftmost free position and the smallest at the rightmost free position.
Step I: 89 30 88 33 36 81 82 26
Step II: 89 88 33 36 81 82 30 26
Step III: 89 88 82 36 81 33 30 26
Step IV: 89 88 82 81 36 33 30 26

Step-by-step solution

  1. Step II is 89 88 33 36 81 82 30 26, after 89 and 88 take the first two places.
  2. Counting from the right end, 26 is 1st, 30 is 2nd, 82 is 3rd, 81 is 4th, 36 is 5th and 33 is 6th.
  3. So the 6th element from the right end is 33.

Why the other options are wrong

  • B. 88 is 7th from the right end, not 6th.
  • C. 36 is 5th from the right end, one place short of 6th.
  • D. 89 is at the left end, which is the 8th from the right.

Tip: Use the illustrated steps to find which value each step places where, then repeat that rule on the new input.

Practise all 25 questions free

The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.

Open this topic in the app →

Related topics

See all Analytical Reasoning topics · All topics