Why this topic matters · 7 min read
Input-Output is a near-certain topic in SBI PO Prelims and Mains Reasoning section. A machine rearranges words or numbers step by step following a hidden rule. You get 4-5 questions per set, worth 4-5 marks. The trick is to crack the rule in under 2 minutes, then answer all questions quickly. SBI PO sets tend to use dual operations (like shifting a word AND a number in the same step) making it harder than IBPS. Mastering rule detection = free marks.
What Is Input-Output
A machine takes an input line of words and/or numbers and rearranges them step by step. Each step follows a fixed hidden rule. Your job is to figure out that rule by comparing Step 1, Step 2 etc., then answer questions like: what does Step 3 look like, or in which step does a given arrangement appear. Think of it like a washing machine: every cycle does the same thing to the clothes, just repeated.
- Input is given. Steps are the machine output at each stage.
- The rule is CONSISTENT across every step — same action repeats.
- Questions ask: find a particular step, find the input from a step, or count total steps.
- SBI PO often gives only some steps (not all) and asks you to reconstruct.
- The final step is when no further rearrangement is needed (fully sorted or a pattern completes).
Types of Rules You Will See
There are 5 common rule patterns. SBI PO 2023-24 favoured the Dual Operation type where BOTH ends of the line get rearranged in the same step. Always check both ends before assuming a rule.
- Type 1 - Alphabetical Sorting: Words arranged A to Z from left or right, one word per step.
- Type 2 - Numerical Sorting: Numbers arranged ascending or descending, one number per step.
- Type 3 - Alternating Ends: One element goes to the left end, next goes to the right end, alternating each step.
- Type 4 - Dual Operation (SBI Favourite): In one step, one word moves to left AND one number moves to right (or vice versa).
- Type 5 - Value-Based: Numbers rearranged by sum of digits, word length, or alphabetical rank of first letter.
Step-by-Step Rule Detection Method
You have 90-120 seconds to crack the rule. Use this 3-step method every time. First, compare Input vs Step 1 — note exactly which elements moved and where they went. Second, compare Step 1 vs Step 2 — confirm the SAME action happened again. Third, verify once with Step 2 vs Step 3 if available. Never assume after just one comparison.
- Highlight the element that appears newly at the leftmost position in each step.
- Check if a corresponding element appeared at the rightmost position too (dual clue).
- Count elements: if 8 elements, expect around 4 steps for dual operation type.
- If rule seems alphabetical, check if it is by word or by number separately.
- Write the rule in a short note: e.g. Smallest number to left, largest word (by length) to right each step.
Calculating Any Step Without Writing All Steps
In Dual Operation type, each step places 2 elements in their final position (one left, one right). So after N steps, the first N elements from left and last N elements from right are fixed. This lets you jump directly to any step without drawing every step. This saves 1-2 minutes in the exam.
- For Dual Operation: After Step N, N elements are locked on the left, N on the right.
- For Single Operation (one element per step): After Step N, N elements are locked on one side.
- To find Step 3 directly: identify the 3 elements that would be locked left and 3 locked right, then arrange the remaining middle elements as they were in the original order.
- Total steps for Dual Op with 8 elements = 4 steps (8 divided by 2).
- Total steps for Single Op with 8 elements = 8 steps.
Key formulas
Total Steps (Dual Op)
Total Steps = Total Elements divided by 2
When: When rule places one element on left AND one on right per step
Total Steps (Single Op)
Total Steps = Total Elements minus 1
When: When rule places only one element per step on one side
Worked examples
Input: 45 apple 12 mango 78 cherry 33 grape (8 elements, Dual Op rule: smallest number to left, word nearest to Z to right). Step 1: 12 apple mango 78 cherry 33 grape 45. Step 2: 33 apple mango 78 cherry grape 45. Notice pattern — to find Step 3 directly, 3rd smallest number goes left (33 already, next is 45), and 3rd word nearest Z goes right. Middle elements stay in relative order.
Question: How many steps to complete? Answer: 8 elements, dual op = 4 steps. No need to draw all steps.
Special SBI PO Variant: Coded Input-Output
SBI PO Mains 2023 introduced a coded variant where the machine assigns a code to each step output (e.g. numbers shift by +2, letters shift by one position in alphabet). You must first decode the logic, then answer which step gives a particular code. Treat it as two puzzles: first crack the arrangement rule, then crack the coding rule.
- Coded variant appears in Mains, not usually Prelims.
- Compare numeric changes between steps to find the shift pattern.
- Check if words swap letters or reverse order as part of coding.
- Solve arrangement rule first, coding rule second — do not mix the two.
- These sets carry high marks so spend up to 3 minutes on rule detection here.
⚠ Common mistakes to avoid
- Assuming the rule after comparing only Input and Step 1 — always verify with at least two consecutive steps before committing.
- Missing dual operation — students check only the left end and miss that the right end is also changing simultaneously, leading to a wrong rule.
- Re-drawing every step when a direct jump calculation is possible — this wastes 2-3 minutes which is fatal in SBI PO speed conditions.
- Confusing alphabetical order of words with ascending order of numbers in the same set — keep words and numbers tracked separately in your rough work.
- In the final step identification, stopping one step too early because the line looks 'almost sorted' — always confirm no further change is possible.
🧠 Memory aids
- RULE BEFORE YOU DROOL: Never start answering before you confirm the rule with 2 step comparisons. One look is never enough.
- LRLR Trick for Dual Op: Left Right Left Right — alternate placing elements. If step 1 puts something on Left, it also puts something on Right. Count pairs not singles.
- FREEZE THE ENDS: After each step in dual op, the outermost elements are frozen like ice — only the middle unfrozen elements keep moving.
- The Washing Machine Analogy: The rule is the washing cycle. Same cycle repeats every step. Find the cycle setting, then predict what the clothes look like after 3 or 4 washes.
🎯 SBI PO exam tips
- SBI PO Prelims typically gives 1 set of 5 questions on Input-Output. It is usually a Dual Operation type with 8 elements (4 words + 4 numbers). Expect 6-7 minutes for the full set — aim to crack the rule in under 90 seconds.
- SBI PO Mains may introduce coded or multi-condition variants where two rules operate simultaneously. These appear in the harder puzzle cluster. Attempt only after completing simpler sets.
- A common SBI PO pattern: input has 3-digit numbers mixed with words. Rule is ascending numbers go left, words in reverse alphabetical order go right. Practice this exact pattern.
- If you cannot crack the rule in 2 minutes, skip the set and return. Do not sit on it — other sets in Reasoning are more time-predictable.
- In the answer options, two choices often differ only by the position of middle elements. This means your rule detection must be precise — even one wrong element position will trick you into a wrong answer.
Q1 · medium · AI-verified
Study the following input and output:
Input: work 15 chair 32 lamp 28 door 41
Step 1: chair work 15 32 lamp 28 door 41
Step 2: chair 15 work 32 lamp 28 door 41
Step 3: chair 15 door work 32 lamp 28 41
Step 4: chair 15 door 28 work 32 lamp 41
Step 5: chair 15 door 28 lamp work 32 41
Step 6: chair 15 door 28 lamp 32 work 41
Step 7: chair 15 door 28 lamp 32 work 41
How many steps will be required to complete the arrangement for input: table 25 pen 18 box 37 fan 44?
- 6
- 7
- 8
- 5
Q2 · medium · AI-verified
Input: book 78 read 34 write 56 learn 92 Machine arranges elements where 3-letter words go to positions 1,3,5,7 and numbers fill remaining positions in descending order. Which number is at position 6?
- 34
- 78
- 56
- 92
Q3 · medium · AI-verified
Input: 19 run 87 jump 52 walk 41 swim In the machine logic, consonant-starting words move left first, then vowel-starting words, followed by numbers in ascending order. What is the 5th element in step IV?
- 52
- 41
- 87
- 19
Q4 · medium · AI-verified
Input: joy 14 peace 28 love 35 hope 21
Machine rearranges by moving smallest number to left end with its following word. What will be the final output?
- 14 peace 21 hope 28 love 35 joy
- joy peace love hope 14 21 28 35
- 14 peace 28 love 21 hope 35 joy
- 14 21 28 35 peace hope love joy
Q5 · medium · AI-verified
A number-word arrangement machine processes input as follows:
Input: 74 pen 28 ink 93 page 41 book
Step 1: book 74 pen 28 ink 93 page 41
Step 2: book 28 74 pen ink 93 page 41
Which element will be arranged in Step 4?
- page
- ink
- 93
- 41