Input-Output
Reasoning · Logical & Analytical Reasoning
Imagine a machine in front of you. You feed it a line — say “pen 47 boat 23 house”. The machine changes it a little at a time: the first step gives one line, the second the next, and so on step by step up to the final line. You are not told the machine’s rule; you must find it yourself from the steps. This is input-output.
The question gives an example (an input and its steps) and then asks: what a step of a new input will be, how many steps are needed, where an item will be in a step, or what the input was from a given step. This chapter teaches all machines in three families, and every line of every step is computed.
How to use this chapter
- Read — the method, word rules and three families.
- Look at the table — after each machine’s example table come questions on that machine.
- Try it yourself — first find the rule (the solution shows it), then work out the later steps.
- Know the level — Basic, Standard, Advanced.
Foundation — machine, step and rule
Vocabulary, three families, four steps to find the rule and a reminder of alphabetical and number order.
Vocabulary and the three families
The words of a machine question and the three kinds of machine.
| Term | Meaning |
|---|---|
| Input | The starting line fed into the machine |
| Step | One change by the machine; Step I, Step II … |
| Rule | What the machine does at every step — you have to find it |
| Last step | When the machine has nothing more to do (the line is fully arranged) |
| Family | What happens at each step | Example rule |
|---|---|---|
| 1. Arranging | One item reaches its place (an end); the rest stay as they were | the smallest number goes to the left end |
| 2. Shifting | Many items change place by a fixed pattern | the first item goes to the end; neighbouring pairs swap |
| 3. Arithmetic | The values of the numbers change | add 4 to every number; then ascending order |
Below is a complete example of an arranging machine. See that at each step only one item reaches a better place and the order of the rest is unchanged — this is the mark of family 1.
A machine rearranges a line of words and numbers step by step by a fixed rule. An example (the input and all its steps) is below. Find the rule yourself.
| Step | Line |
|---|---|
| Input | 25 gate farm wheel basket jungle 98 |
| Step I | basket 25 gate farm wheel jungle 98 |
| Step II | basket farm 25 gate wheel jungle 98 |
| Step III | basket farm gate 25 wheel jungle 98 |
| Step IV | basket farm gate jungle 25 wheel 98 |
| Step V | basket farm gate jungle wheel 25 98 |
- 1The rule (in turn): the alphabetically first word goes to the left end.
- 2Input: 80 gate 11 ship door water home
- 3Step I: door 80 gate 11 ship water home
- 4Step II: door gate 80 11 ship water home
- 5Step III: door gate home 80 11 ship water
- 6Step IV: door gate home ship 80 11 water
Four steps to find the rule
Comparing two consecutive steps, recognising the family, confirming with the last step, and a reminder of word and number order.
| You see | Likely family |
|---|---|
| One item left its place for an end; the rest keep their order | Arranging |
| All items changed place but the set of items is the same | Shifting |
| The values of the numbers changed | Arithmetic |
A reminder of alphabetical and number order
The alphabetical order of words is like a dictionary: look at the first letter (a to z); if it is the same, the second; then the third. For example gate, gift, game: all start with g; second letters a, i, a — so gift comes last; in gate and game the third letters are t and m — game first. Ascending order of numbers is small to large, descending large to small.
A machine rearranges a line of words and numbers step by step by a fixed rule. An example (the input and all its steps) is below. Find the rule yourself.
| Step | Line |
|---|---|
| Input | 54 44 37 30 hill 50 34 |
| Step I | 44 37 30 hill 50 34 54 |
| Step II | 30 44 37 hill 50 34 54 |
| Step III | 30 44 37 hill 34 50 54 |
| Step IV | 30 34 44 37 hill 50 54 |
| Step V | 30 34 37 hill 44 50 54 |
Arranging machines
Machines that arrange numbers, words and both in turn.
Machines that bring numbers to an end
The rule of placing numbers one by one at an end; the words keep their places.
This part is in All Access.
With the pass, every example, practice question and solution in this chapter opens.
Also in these passes: RAS Pre 2026 — 40 Day Study Plan + Complete Notes (₹300.00) · Reasoning (English Medium) (₹90.00) · RRB NTPC Graduation Level 2026 (₹300.00) · RRB NTPC Under Graduate Level 2026 (₹300.00)
Machines that bring words to an end
The alphabetically first or last, or shortest or longest word, one by one at an end.
This part is in All Access.
With the pass, every example, practice question and solution in this chapter opens.
Also in these passes: RAS Pre 2026 — 40 Day Study Plan + Complete Notes (₹300.00) · Reasoning (English Medium) (₹90.00) · RRB NTPC Graduation Level 2026 (₹300.00) · RRB NTPC Under Graduate Level 2026 (₹300.00)
The mixed rule for words and numbers
Two rules in turn — one on numbers and one on words — and counting their steps.
This part is in All Access.
With the pass, every example, practice question and solution in this chapter opens.
Also in these passes: RAS Pre 2026 — 40 Day Study Plan + Complete Notes (₹300.00) · Reasoning (English Medium) (₹90.00) · RRB NTPC Graduation Level 2026 (₹300.00) · RRB NTPC Under Graduate Level 2026 (₹300.00)
Shifting machines
Rotating, swapping pairs, reversing, swapping the ends and step-dependent rules; when the line comes back.
Simple shifting rules
Machines that repeat one position-change at every step and how to recognise them.
This part is in All Access.
With the pass, every example, practice question and solution in this chapter opens.
Also in these passes: RAS Pre 2026 — 40 Day Study Plan + Complete Notes (₹300.00) · Reasoning (English Medium) (₹90.00) · RRB NTPC Graduation Level 2026 (₹300.00) · RRB NTPC Under Graduate Level 2026 (₹300.00)
Rules that change with the step
The machine that swaps the next pair at each step and machines doing two operations in turn.
This part is in All Access.
With the pass, every example, practice question and solution in this chapter opens.
Also in these passes: RAS Pre 2026 — 40 Day Study Plan + Complete Notes (₹300.00) · Reasoning (English Medium) (₹90.00) · RRB NTPC Graduation Level 2026 (₹300.00) · RRB NTPC Under Graduate Level 2026 (₹300.00)
When the line comes back
The number of steps until the line becomes the input again when the machine is run on and on.
This part is in All Access.
With the pass, every example, practice question and solution in this chapter opens.
Also in these passes: RAS Pre 2026 — 40 Day Study Plan + Complete Notes (₹300.00) · Reasoning (English Medium) (₹90.00) · RRB NTPC Graduation Level 2026 (₹300.00) · RRB NTPC Under Graduate Level 2026 (₹300.00)
Machines that work on numbers
Number machines that repeat two operations in turn and their reverse questions.
Adding and subtracting machines
Operations that change the values of the numbers and two operations in turn.
This part is in All Access.
With the pass, every example, practice question and solution in this chapter opens.
Also in these passes: RAS Pre 2026 — 40 Day Study Plan + Complete Notes (₹300.00) · Reasoning (English Medium) (₹90.00) · RRB NTPC Graduation Level 2026 (₹300.00) · RRB NTPC Under Graduate Level 2026 (₹300.00)
Machines that reorder and sum digits
Operations that change order and form: digit sum, ascending, descending, reversing, swapping the ends.
This part is in All Access.
With the pass, every example, practice question and solution in this chapter opens.
Also in these passes: RAS Pre 2026 — 40 Day Study Plan + Complete Notes (₹300.00) · Reasoning (English Medium) (₹90.00) · RRB NTPC Graduation Level 2026 (₹300.00) · RRB NTPC Under Graduate Level 2026 (₹300.00)
Finding the input from a step
Finding the input from a step through operations that can be undone and checking options by running them forward.
This part is in All Access.
With the pass, every example, practice question and solution in this chapter opens.
Also in these passes: RAS Pre 2026 — 40 Day Study Plan + Complete Notes (₹300.00) · Reasoning (English Medium) (₹90.00) · RRB NTPC Graduation Level 2026 (₹300.00) · RRB NTPC Under Graduate Level 2026 (₹300.00)
Strategy guide
Spotting the family, the order of working out steps and common mistakes.
The table of recognition and the order
A table for spotting the family from the first two steps and what to check in each.
This part is in All Access.
With the pass, every example, practice question and solution in this chapter opens.
Also in these passes: RAS Pre 2026 — 40 Day Study Plan + Complete Notes (₹300.00) · Reasoning (English Medium) (₹90.00) · RRB NTPC Graduation Level 2026 (₹300.00) · RRB NTPC Under Graduate Level 2026 (₹300.00)
Common traps and time-savers
Reasons for losing marks in machine questions.
This part is in All Access.
With the pass, every example, practice question and solution in this chapter opens.
Also in these passes: RAS Pre 2026 — 40 Day Study Plan + Complete Notes (₹300.00) · Reasoning (English Medium) (₹90.00) · RRB NTPC Graduation Level 2026 (₹300.00) · RRB NTPC Under Graduate Level 2026 (₹300.00)
Mixed practice
Arranging, shifting and arithmetic machines, in three levels.
Basic practice
Three machines with simple rules.
This part is in All Access.
With the pass, every example, practice question and solution in this chapter opens.
Also in these passes: RAS Pre 2026 — 40 Day Study Plan + Complete Notes (₹300.00) · Reasoning (English Medium) (₹90.00) · RRB NTPC Graduation Level 2026 (₹300.00) · RRB NTPC Under Graduate Level 2026 (₹300.00)
Standard practice
A word machine, a step-dependent rule and a number machine that reorders.
This part is in All Access.
With the pass, every example, practice question and solution in this chapter opens.
Also in these passes: RAS Pre 2026 — 40 Day Study Plan + Complete Notes (₹300.00) · Reasoning (English Medium) (₹90.00) · RRB NTPC Graduation Level 2026 (₹300.00) · RRB NTPC Under Graduate Level 2026 (₹300.00)
Advanced practice
Questions with long steps, the length of a cycle and finding the input from a step.
This part is in All Access.
With the pass, every example, practice question and solution in this chapter opens.
Also in these passes: RAS Pre 2026 — 40 Day Study Plan + Complete Notes (₹300.00) · Reasoning (English Medium) (₹90.00) · RRB NTPC Graduation Level 2026 (₹300.00) · RRB NTPC Under Graduate Level 2026 (₹300.00)
Revision — cards
Think of the answer yourself first, then flip.
This part is in All Access.
With the pass, every example, practice question and solution in this chapter opens.
Also in these passes: RAS Pre 2026 — 40 Day Study Plan + Complete Notes (₹300.00) · Reasoning (English Medium) (₹90.00) · RRB NTPC Graduation Level 2026 (₹300.00) · RRB NTPC Under Graduate Level 2026 (₹300.00)