Machine input–output questions look like long strings of symbols, but they are not cryptic. The machine applies the same local rule every step until the line reaches a fixed pattern — often fully sorted numbers, or words in alphabetical order with numbers interleaved. Your job is to name that rule once, then extend a table faster than the setter expects you to brute-force from scratch.
They appear regularly in PO and clerk prelims as one full set (five questions) or as two standalone items. The set is high value if you treat it as bookkeeping, not inspiration.
What you are actually asked
Three question types repeat:
- Which step shows a given arrangement (or how many steps to finish)?
- Which element sits at a stated position on a stated step?
- What is the last step / what is the middle line after (k) steps?
All three use the same engine: Input → Step I → Step II → … with one rule per step.
Step 1 — Compare Input and Step I only
Cover every later step. Look at what moved and where it landed.
Common rule families in bank papers:
| Signal in Step I | Typical rule for odd steps | Typical rule for even steps |
|---|---|---|
| Smallest number jumps to the left end | Next smallest to next left slot | Largest among rest to right end |
| Largest word moves to the right | Next word in reverse alphabet to right | Smallest number to left |
| Two elements swap at the ends | “Sort from both ends” pattern | Continue filling inwards |
The most frequent number-only pattern is fill from both ends: odd steps place the next minimum at the next free position from the left; even steps place the next maximum at the next free position from the right. When Step I moves the smallest number to the front, test that pattern first.
For word-only inputs, Step I often moves the first word alphabetically to the left, or the last word alphabetically to the right. Mixed inputs may apply the word rule to words and the number rule to numbers in the same step — read the first change carefully.
Step 2 — Build the table; do not skip rows
Write columns: Step | Line. Each new row is one machine pass. Stop when:
- The line is in its final order (often ascending numbers), or
- You reach the step the question names.
Position counting: positions are 1, 2, 3 … from the left unless the question says otherwise. On step (k), read the element at position (p) directly from row (k).
Step 3 — Answer “which step” by matching the whole line
Setters love near-miss lines — same ends as the target but the middle differs. Match every token. If only the ends match, keep going.
Worked example — number input, both-ends rule
Input: 53 92 15 81 29 47
Rule identified: Odd steps: smallest remaining number to the next left slot. Even steps: largest remaining number to the next right slot.
| Step | Line (left → right) |
|---|---|
| Input | 53 92 15 81 29 47 |
| I | 15 53 92 81 29 47 |
| II | 15 53 81 29 47 92 |
| III | 15 29 53 81 47 92 |
| IV | 15 29 53 47 81 92 |
| V | 15 29 47 53 81 92 |
| VI | 15 29 47 53 81 92 |
How each step follows the rule:
- I: Minimum 15 → position 1.
- II: Among 53, 92, 81, 29, 47 the maximum is 92 → position 6.
- III: Next minimum among 53, 81, 29, 47 is 29 → position 2.
- IV: Next maximum among 53, 81, 47 is 81 → position 5.
- V: Next minimum 47 → position 3.
- VI: Only 53 remains for position 4; line is sorted.
Sample reads from the table:
- Which step shows
15 29 53 47 81 92? Step IV (read the row exactly). - What is at position 3 on Step III? Row III → 53.
- How many steps after Input to reach full sort? Step VI → six steps.
Once the rule is confirmed on Steps I–II, later rows are arithmetic on “next min / next max”, not new reasoning.
Word input variant — alphabetical left fill
Input: dawn crop ultra nest beam
Suppose Step I is: first word in A–Z order moves to the leftmost free slot each odd step, and last word in A–Z order among the rest moves to the rightmost free slot each even step (same both-ends idea as numbers).
Alphabetical order: beam, crop, dawn, nest, ultra.
| Step | Line |
|---|---|
| Input | dawn crop ultra nest beam |
| I | beam dawn crop ultra nest |
| II | beam dawn crop nest ultra |
| III | beam crop dawn nest ultra |
| IV | beam crop dawn nest ultra |
| V | beam crop dawn nest ultra |
Step V is fully sorted A→Z. Questions then ask for the word at position 4 on Step III (nest), and so on — same table skill.
Pairing and shifting traps
Some papers use adjacent swaps (only neighbors exchange) or rotate left (first element goes to the end). Detect them when exactly one swap or one shift happens per step:
- Single swap of neighbors → track the moving block; the order changes locally, not by global min/max.
- Left rotation → the first token appears at the end; everything else shifts one left.
If Step I does not move an extreme (min/max) to an end, abandon the both-ends rule and switch models early — that decision saves the whole set.
Best practices
- Name the rule in three words (“min left, max right”) before row III.
- Underline fixed slots once a position stops changing; do not re-scan it every step.
- Copy the line faithfully — transposing two digits once corrupts every follow-up question.
- Time-box rule search to 45 seconds. If Steps I and II fit two different rules, test which predicts Step III; the wrong model usually breaks immediately.
- Place machine sets after fixed-method marks like coding–decoding in your pass order; the section-level habit is in reasoning best practices.
Common mistakes
- Assuming ascending sort in one step when the machine fills one slot per step.
- Matching only the first and last elements when asked “which step”.
- Resetting the input for each sub-question instead of reusing one table.
- Applying a number rule to words (alphabetical order is not numeric).
Practice set
Input (numbers): 64 18 77 05 41 29
Rule: Odd steps → smallest remaining to the next left slot; even steps → largest remaining
to the next right slot.
Q1. How many steps are needed after Input to sort the line fully?
Q2. On which step does 18 first occupy position 2?
Q3. What element is at position 4 on Step III?
Q4. Which line is Step II?
Q5. After Step IV, what sits at position 1?
Answers
Building the table:
| Step | Line |
|---|---|
| Input | 64 18 77 05 41 29 |
| I | 05 64 18 77 41 29 |
| II | 05 64 18 41 29 77 |
| III | 05 18 64 41 29 77 |
| IV | 05 18 41 29 64 77 |
| V | 05 18 29 41 64 77 |
Q1 — Five steps (Step V is fully sorted).
Q2 — Step III (18 is at position 2 on row III; on II it is still at position 3).
Q3 — 41 (row III, fourth token).
Q4 — 05 64 18 41 29 77.
Q5 — 05 (position 1 is fixed from Step I onward in this pattern).
Frequently asked questions
What is the first thing to identify in a machine input–output set?
The operation performed in one step — usually placing the next smallest or largest element in its final slot, or sorting words alphabetically in one direction while numbers move the other way. Write Step I next to the line after the input, compare with the input, and name the change in one short phrase before you advance.
How do I answer which step an arrangement appears on?
Build the step table until the line is fully sorted or until the asked arrangement matches. The step number is the row label, not the count of moves you make in your head. If the question gives a partial line, match every element position, not just the ends.
Are words and numbers handled the same way?
Often no. Many sets alternate word rules and number rules by step parity, or apply alphabetical order to words and numerical order to digits in the same step. Check whether the input is all numbers, all words, or mixed before you assume one rule for the whole set.
Read next
Reasoning Ability
Data sufficiency: answer whether the clues are enough, not what the answer is
Data sufficiency tests whether Statement I, II, or both together pin the answer — not the value itself. Use the five-option order, avoid assuming facts, and separate either-alone from both-needed with relations, ranking, seating, and number examples.
English Language
Descriptive paper strategy: essay and formal letter writing for banking mains
Formats, timing and word limits for SBI PO, IBPS PO and RBI Grade B descriptive tests—formal letters, essay structure, model outlines, evaluator habits, common mistakes, and weekly practice prompts.
Reasoning Ability
Statement, assumption, and course of action: implicit, feasible, and not extreme
Statement-based reasoning splits into assumptions (unspoken must-haves), conclusions (what follows), courses of action (what should be done), and argument strength. Use the validity rules, watch extreme words, and judge feasibility — with worked examples and a short practice set.
Current Affairs
How to prepare current affairs for competitive exams
A repeatable method for current affairs — one daily source, monthly consolidation, theme-wise one-liners, six-to-twelve-month window, and retrieval via the daily quiz — tuned for SSC, railways and banking papers.