IBPS PO · Reasoning Ability

Machine Input-Output

Step-by-step word/number rearrangement following a hidden rule.

Share with your prep group:WhatsApp

Test yourself on Machine Input-Output

5 practice questions for IBPS PO with instant answers, ~3 minutes — the first 2 free, then sign up free with Google.

Take the 5-question quiz →

Machine Input-Output

Overview

Machine Input-Output is a reasoning topic where you are given an initial arrangement of words and/or numbers, and shown how a hypothetical "machine" rearranges them step-by-step until reaching a final output. Your job is to decode the hidden rule governing each step, then apply it to answer questions about intermediate or final arrangements.

It tests pattern recognition, systematic thinking, and the ability to track multiple elements through sequential changes. Once you crack the rule, the questions in the set become quick marks—but missing the pattern can cost you the entire set. Mastering this topic is high-reward because the questions are predictable once the logic is understood.

The key challenge is that the rule is never stated explicitly. You must infer it by comparing the input with each subsequent step, observing which element moves and where it lands.

Key Concepts

  • The machine follows a consistent rule at every step. Whatever operation happens in Step 1 repeats in the same logical manner in Step 2, Step 3, and so on.
  • Elements are typically rearranged, not removed or added. The same words and numbers from the input appear in the output—only their positions change.
  • Common operations involve sorting: arranging words alphabetically (A→Z or Z→A) or numbers in ascending/descending order, one element per step.
  • Position matters: Elements may be picked from the left end, right end, or based on a specific property (smallest number, first word alphabetically).
  • Dual-end movement is common: One word may move to the left while one number moves to the right in the same step, or vice versa.
  • The final output is the stopping point: When no further rearrangement is needed (fully sorted), the machine halts.
  • Counting steps from input: Input is Step 0. The first rearrangement is Step 1. Questions often ask about Step 3 or Step 4, so track carefully.

Formulas / Key Facts

  1. Alphabetical order for words: Compare first letters; if same, compare second letters (e.g., "bat" comes before "box").
  2. Ascending order: Smallest to largest (12, 25, 38, 47).
  3. Descending order: Largest to smallest (47, 38, 25, 12).
  4. Left-end placement: The selected element moves to position 1 (leftmost).
  5. Right-end placement: The selected element moves to the last position.
  6. Alternating pattern: Words may go to one end, numbers to the other—or odd-positioned and even-positioned elements may follow different rules.
  7. Step count: Total steps = Total elements ÷ Elements moved per step (approximately). For 8 elements moving 2 per step, expect 4 steps.
  8. Reverse alphabetical: Z→A ordering—"zone" comes before "apple."

Worked Examples

Example 1: Basic Word-Number Sorting

Input: sky 42 pen 18 box 65 arm 31

Step 1: arm sky 42 pen 18 box 31 65 Step 2: arm box sky pen 18 31 42 65 Step 3: arm box pen sky 18 31 42 65 (Step 3 is already fully arranged, so the machine stops.)

Decode the rule:

  • Compare Input to Step 1: "arm" (alphabetically first word) moved to left end; "65" (largest number) moved to right end.
  • Step 2 confirms: "box" (next alphabetical word) goes left, after "arm"; "42" (next largest number) goes right, before "65".
  • Pattern: Each step moves the next alphabetically first word to the left (after the words already arranged) and the next largest number to the right (before the numbers already arranged).

Question: What is the position of "42" in Step 3? Answer: In Step 3, the arrangement is: arm box pen sky 18 31 42 65. Position of "42" = 7th from left.


Example 2: Reverse Pattern

Input: 24 march 52 june 11 april 39 may

Step 1: may 24 march 52 june april 39 11 Step 2: may march 52 june april 39 24 11 Step 3: may march june 52 april 39 24 11 Step 4: may march june april 52 39 24 11

Decode the rule:

  • Step 1: "may" (last word alphabetically) moved to the left end; "11" (smallest number) moved to the right end.
  • Looking closely: smallest number moves right, and words are being arranged in reverse alphabetical order (Z→A) from the left end.

Question: Which element is 4th from the right in Step 2? Step 2 arrangement: may march 52 june april 39 24 11 Counting from right: 11(1), 24(2), 39(3), april(4) Answer: april


Example 3: Finding a Specific Step

Input: row 17 cat 84 job 53 win 29

You're told the final output is: cat job row win 17 29 53 84

Question: How many steps does the machine take?

Solution:

  • Words are alphabetically arranged (left side): cat, job, row, win
  • Numbers are in ascending order (right side): 17, 29, 53, 84
  • If one word and one number are placed per step, total steps = 4

Common Mistakes

  • Confusing Input with Step 1: Students count the input as Step 1. Fix: Input is always Step 0; the first change produces Step 1.
  • Assuming only one type of sorting: Students think only numbers are sorted or only words. Fix: Check both ends—often words go one way, numbers go the other.
  • Misreading alphabetical order: Comparing "pen" and "pan"—students pick wrong word. Fix: Compare letter by letter: p-a-n comes before p-e-n.
  • Losing track of positions: After 3-4 steps, students miscount positions. Fix: Write out each step fully; count from left starting at 1.
  • Not verifying the rule: Students assume a rule after one step. Fix: Always confirm the pattern holds for at least two consecutive steps before answering.

Quick Reference

  • Decode the rule by comparing Input → Step 1 → Step 2.
  • Words usually sort alphabetically; numbers sort by value.
  • One element (or one pair) typically moves per step.
  • Input = Step 0. First rearrangement = Step 1.
  • Final output = fully sorted arrangement where no more moves are needed.
  • Always verify your decoded rule against multiple steps before answering.

Fact-checked on 21 Oct 2026: an AI-assisted check of this note against cited sources; the errors it found were corrected that day. Some errors may remain. Download the IBPS PO checked notes as a PDF

Flashcards from this note · IBPS PO bite-size lessons

Drafted with AI from Shishya's syllabus outline for this exam · Reviewed by a person: not yet · Report an error

You read the notes — now try one

A word and number arrangement machine when given an input line of words and numbers rearranges them following a particular rule in each step. The following is an illustration of input and rearrangement: Input: 45 basket 12 orange 78 chair 33 table Step I: 12 45 basket orange 78 chair 33 table Step II: 12 basket 45 orange 78 chair 33 table Step III: 12 basket 33 45 orange 78 chair table Step IV: 12 basket 33 chair 45 orange 78 table Step V: 12 basket 33 chair 45 orange table 78 Step V is the last step of the rearrangement. As per the rules followed in the above steps, find the appropriate step for the following input: Input: 56 apple 89 pencil 23 eraser 41 bottle Which step number is the following output? 23 apple 41 bottle 56 eraser 89 pencil

Tap an option to check your answer.

👥 Study this together

Invite your prep group to read the same notes and practise the same questions.

About this topic in IBPS PO

  • In the exam pattern: Preliminary Examination, Reasoning Ability: 35 questions, 40 marks (IBPS notice, 1 Jul 2026).
  • Practice: 6 answer-checked practice questions on Machine Input-Output for IBPS PO — practise them.

Signed-in students aged 13 and above can share their own notes on Machine Input-Output here; a moderator reads each one first.

మరింత కావాలా? Shishya ని అడగండి

Shishya ఈ టాపిక్ కోసం మీ వ్యక్తిగత tutor. ఒక starter ఎంచుకోండి లేదా ఉచిత చాట్ తెరవండి.

Shishya tutor తెరవండి →

ఈ టాపిక్ ప్రాక్టీస్ చేయండి

పూర్తి మాక్ తీసుకోండి →
  • Q1 · Machine Input-Output · MEDIUM

    A word and number arrangement machine when given an input line of words and numbers rearranges them following a particular rule in each step. The following is an illustration of input and rearrangement: Input: 45 basket 12 orange 78 chair 33 table Step I: 12 45 basket orange 78 chair 33 table Step II: 12 basket 45 orange 78 chair 33 table Step III: 12 basket 33 45 orange 78 chair table Step IV: 12 basket 33 chair 45 orange 78 table Step V: 12 basket 33 chair 45 orange table 78 Step V is the last step of the rearrangement. As per the rules followed in the above steps, find the appropriate step for the following input: Input: 56 apple 89 pencil 23 eraser 41 bottle Which step number is the following output? 23 apple 41 bottle 56 eraser 89 pencil

  • Q2 · Machine Input-Output · EASY

    A word and number arrangement machine when given an input line of words and numbers rearranges them following a particular rule in each step. The following is an illustration of input and rearrangement: Input: 42 rain 15 cloud 88 thunder 61 storm Step I: 15 42 rain cloud 88 thunder 61 storm Step II: 15 cloud 42 rain 88 thunder 61 storm Step III: 15 cloud 42 rain 61 88 thunder storm Step IV: 15 cloud 42 rain 61 storm 88 thunder Step V: 15 cloud 42 rain 61 storm 88 thunder Which of the following will be Step II for the input given below? Input: 77 book 38 pen 91 desk 54 paper

  • Q3 · Machine Input-Output · HARD

    A word and number arrangement machine when given an input line of words and numbers rearranges them following a particular rule in each step. The following is an illustration of input and rearrangement: Input: 25 tiger 63 lion 48 bear 81 deer 37 fox Step I: 81 25 tiger 63 lion 48 bear deer 37 fox Step II: 81 63 25 tiger lion 48 bear deer 37 fox Step III: 81 63 48 25 tiger lion bear deer 37 fox Step IV: 81 63 48 37 25 tiger lion bear deer fox Step V: 81 63 48 37 25 tiger lion fox bear deer Step VI: 81 63 48 37 25 tiger lion fox deer bear How many steps will be required to complete the arrangement for the following input? Input: 52 apple 19 mango 74 orange 33 grape 66 banana

  • Q4 · Machine Input-Output · MEDIUM

    A machine rearranges an input line of words and numbers step-by-step. Each step follows a specific rule until the arrangement is complete. Study the pattern: Input: 42 tree 18 blue 36 lake 24 fan Step I: 18 42 tree blue 36 lake 24 fan Step II: 18 blue 42 tree 36 lake 24 fan Step III: 18 blue 24 42 tree 36 lake fan Step IV: 18 blue 24 fan 42 tree 36 lake Step V: 18 blue 24 fan 36 42 tree lake Step VI: 18 blue 24 fan 36 lake 42 tree Step VI is the final step. Now, for the input given below, which of the following will be Step IV? Input: 56 window 32 green 44 river 20 pen

  • Q5 · Machine Input-Output · HARD

    A word arrangement machine rearranges words step-by-step. Input: 'blue 32 green 18 yellow 45 red 12'. Step I: '12 blue 32 green 18 yellow 45 red'. Step II: '12 blue 18 32 green yellow 45 red'. What will be Step III?

Ask Shishya to explain these →

నోట్స్ తయారైన తేదీ 22 Jun 2026