Input Output
Input Output is a reasoning section question type that tests your ability to analyze a given input, understand the logic behind its transformation, and apply that logic to new inputs or find a specific step. These questions are often seen as time-consuming but can be mastered with practice and a systematic approach.
Types of Input Output Questions
Input Output questions generally involve a series of numbers, words, or a combination of both, which are rearranged or modified according to a specific set of rules. The most common types are:
1. Machine Input/Output (Number/Word Rearrangement
In this type, a given input string (numbers, words, or a mix) is processed in multiple steps to reach a final output. You are usually given one or two examples of the input-output process and asked to determine the output for a new input or a specific step.
Understanding the Logic
The core of solving these problems lies in deciphering the rules applied in each step. These rules can include:
- Rearrangement of words/numbers: Based on alphabetical order (ascending/descending), numerical order (ascending/descending), length of words, position of words/numbers, etc.
- Modification of words/numbers: Adding/subtracting values, replacing letters/digits, changing case, etc.
- Combination of rules: Often, different rules are applied to different parts of the input in the same step, or different rules apply to words and numbers.
Step-by-Step Analysis Example
Let's take an example to understand the process:
Input: 52 rose 19 garden 83 apple 45 banana 91
Output:
Step 1: 19 52 rose garden 83 apple 45 banana 91
Step 2: 19 45 52 rose garden 83 apple banana 91
Step 3: 19 45 52 83 rose garden apple banana 91
Step 4: 19 45 52 83 apple banana garden rose 91
Step 5: 19 45 52 83 91 apple banana garden rose
Analysis:
- The input contains numbers and words.
- In Step 1, the smallest number (19) is moved to the beginning.
- In Step 2, the next smallest number (45) is moved to the second position.
- In Step 3, the next smallest number (83) is moved to the fourth position. This suggests numbers are being sorted in ascending order and placed at specific positions.
- In Step 4, the words seem to be sorted alphabetically (apple, banana, garden, rose).
- In Step 5, the largest number (91) is moved to the end. This is unusual if the numbers are strictly ascending. Let's re-examine.
Revised Analysis:
Let's assume the input is processed in a way that numbers are sorted and placed at the beginning, and words are sorted and placed at the end. Let's look at the numbers: 52, 19, 83, 45, 91. Sorted: 19, 45, 52, 83, 91. Words: rose, garden, apple, banana. Sorted: apple, banana, garden, rose.
Let's trace again with this assumption:
Input: 52 rose 19 garden 83 apple 45 banana 91
Numbers: 19, 45, 52, 83, 91
Words: apple, banana, garden, rose
Hypothesized Output: 19 45 52 83 91 apple banana garden rose
Now, let's see how the given steps could lead to this. It seems the process might be mixing numbers and words, moving them one by one.
Input: 52 rose 19 garden 83 apple 45 banana 91
Step 1: 19 52 rose garden 83 apple 45 banana 91 (Smallest number 19 moved to the front)
Step 2: 19 45 52 rose garden 83 apple banana 91 (Next smallest number 45 moved to the second position)
Step 3: 19 45 52 83 rose garden apple banana 91 (Next smallest number 83 moved to the fourth position)
Step 4: 19 45 52 83 apple rose garden banana 91 (This step is tricky. If we assume numbers are sorted and words are sorted, let's see. If numbers 19, 45, 52, 83 are placed, what's left? rose, garden, apple, banana, 91. In Step 4, 'apple' appears. It's the first word alphabetically. Let's assume words are sorted and placed after numbers. So, maybe the 91 was moved to the end first?)
Let's try a different approach: Identify what elements are moving and where.
Input: 52 rose 19 garden 83 apple 45 banana 91
Output Example: 19 45 52 83 91 apple banana garden rose
It looks like all numbers are sorted in ascending order and placed at the beginning, and all words are sorted alphabetically and placed at the end.
Rule: Numbers are sorted in ascending order and placed at the beginning. Words are sorted in alphabetical order and placed at the end.
Now, let's look at the provided steps again:
Input: 52 rose 19 garden 83 apple 45 banana 91
Step 1: 19 52 rose garden 83 apple 45 banana 91 (19 moved to pos 1)
Step 2: 19 45 52 rose garden 83 apple banana 91 (45 moved to pos 2)
Step 3: 19 45 52 83 rose garden apple banana 91 (83 moved to pos 4. This indicates that the elements are not just appended but inserted based on their sorted order.)
Step 4: 19 45 52 83 apple rose garden banana 91 (Now, 'apple' is moved. It's the first word alphabetically. This suggests words are also being inserted in their sorted order into the remaining slots.)
Step 5: 19 45 52 83 91 apple banana garden rose (91 moved to pos 5. The remaining words 'banana', 'garden', 'rose' are placed in alphabetical order.)
Corrected Logic: In each step, either the smallest remaining number is placed at the next available position from the left (for numbers), or the first word alphabetically is placed at the next available position from the right (for words), or the largest remaining number is placed at the next available position from the right (for numbers). The exact rule varies.
A common pattern is: 1. Identify all numbers and words. 2. Sort numbers in ascending order. 3. Sort words in alphabetical order. 4. Combine them in a specific order (e.g., all numbers first then all words, or interleaved). 5. The steps show how this final arrangement is achieved by moving elements one by one.
Common Rules in Machine Input-Output:
- Numbers are sorted in ascending or descending order.
- Words are sorted in alphabetical order.
- Sometimes, the order is reversed (e.g., smallest number moves to the end, largest number moves to the beginning).
- The elements might be grouped (e.g., all numbers first, then all words).
- The process continues until all elements are sorted or rearranged.
Solving Strategy for Machine Input-Output
- Observe the Input and Final Output: Carefully compare the initial input with the final output provided.
- Identify the Elements: Note down all the numbers and words present in the input.
- Look for Sorting: Check if the numbers are sorted (ascending/descending) and if the words are sorted (alphabetically).
- Analyze the Steps: Examine each step to understand which element is moving and where.
- Is it the smallest number moving to the front?
- Is it the largest number moving to the end?
- Is it the first word alphabetically moving to a specific position?
- Are numbers and words being segregated?
- Deduce the Rule: Formulate a clear rule for each step or for the overall process.
- Apply to New Input: Once the rule is clear, apply it systematically to the new input provided in the question.
- Work Backwards (if needed): If asked for a specific step or the input, you might need to reverse the process.
2. Coding-Decoding Based Input Output
In this variation, the input might be a sentence or a phrase, and the output is a coded version of it. The coding can be based on letter shifts, substitutions, or other logical operations.
Example:
Input: The quick brown fox jumps over the lazy dog.
Output: Vjg swjdl dptso hpy knutq pwit vjg ncdz doh.
Analysis: Each letter in the input seems to be shifted forward by 2 positions in the alphabet (T+2=V, h+2=j, e+2=g, etc.). This is a Caesar cipher with a shift of +2.
Rule: Each letter is replaced by the letter 2 positions ahead in the English alphabet.
3. Logical Reasoning Based Input Output
These questions often involve a scenario or a set of conditions, and you need to determine the outcome based on logical deduction. This overlaps significantly with other logical reasoning topics.
Common Pitfalls and How to Avoid Them
- Assuming a Simple Rule: Don't assume the rule is just simple alphabetical or numerical sorting. There might be complex combinations.
- Skipping Steps: Analyze every step. Sometimes, a change in one step affects the logic of subsequent steps.
- Focusing on Only Numbers or Words: Pay attention to how numbers and words interact or are placed relative to each other.
- Time Management: These can be time-consuming. Practice identifying patterns quickly. If you get stuck, move to the next question and come back.
Mastering Input Output questions requires consistent practice. The more examples you solve, the faster you will become at recognizing common patterns and deducing the underlying logic.
Logical Reasoning
Logical Reasoning is a crucial section in competitive exams, designed to assess a candidate's ability to think critically, analyze information, and draw accurate conclusions. It evaluates how well you can understand relationships between statements, identify patterns, and solve problems using deductive and inductive reasoning.
Types of Logical Reasoning Questions
Logical Reasoning can be broadly categorized into several types, each testing different aspects of your analytical skills.
1. Analytical Reasoning
This involves understanding complex relationships between different entities (people, objects, places, times, etc.) based on a given set of conditions or premises. You need to arrange these entities logically to answer specific questions.
Common Sub-types:
- Sequencing/Ordering: Arranging items or people in a specific order (e.g., who finished a race first, second, etc.; arranging events chronologically).
- Arrangement (Linear/Circular/Matrix): Placing people or objects in a line, around a circle, or in a grid based on given constraints.
- Blood Relations: Determining the relationship between individuals in a family tree based on given statements.
- Direction Sense: Determining the final direction or distance of a person from their starting point after a series of movements.
- Clocks and Calendars: Calculating angles between clock hands, finding the day of the week for a given date, or calculating time differences.
Example: Arrangement (Linear)
Premise: Six friends – A, B, C, D, E, and F – are sitting in a row facing North.
- B is sitting immediately to the left of D.
- A is sitting at one of the ends.
- C is sitting exactly between A and D.
- E is not sitting next to A or D.
Solution Strategy:
- Visualize: Draw 6 empty slots representing the row facing North.
- Place Definite Information: A is at an end. Let's assume A is at the left end: A _ _ _ _ _.
- Incorporate Related Clues: C is between A and D. Since A is at the end, D must be to the right of C. So, A C D _ _ _.
- Add More Clues: B is to the left of D. This fits perfectly: A C B D _ _.
- Place Remaining Elements: The remaining friends are E and F. The remaining slots are the 5th and 6th. E is not next to A or D. If E is in the 5th slot, it's not next to A or D. If E is in the 6th slot, it's not next to A or D.
- Check Constraints: E is not next to A (true if E is in slot 5 or 6). E is not next to D (true if E is in slot 5 or 6).
- Final Arrangement: If A is at the left end, the arrangement could be A C B D E F or A C B D F E.
Let's check the constraint "E is not sitting next to A or D". In A C B D E F, E is next to D. This is not allowed.
So, E must be in the 6th position. The arrangement must be A C B D F E.
Let's verify: A (end), B left of D (ok), C between A and D (ok), E not next to A or D (ok).
What if A is at the right end? _ _ _ _ _ A. Then C is between A and D, so D C A. B is left of D. This doesn't fit. So A must be at the left end.
Therefore, the arrangement is A C B D F E.
2. Deductive Reasoning
This involves drawing conclusions from a set of given statements (premises). If the premises are true, the conclusion derived through valid deductive reasoning must also be true.
Common Sub-types:
- Syllogisms: Statements involving categories and their relationships (e.g., All A are B, Some B are C, Therefore, Some A are C).
- Statement and Conclusion: Given a statement, determine which conclusion logically follows from it.
- Statement and Assumption: Identify underlying assumptions made in a statement.
- Statement and Argument: Evaluate whether an argument presented is strong or weak based on a statement.
Example: Syllogism
Statements:
- All dogs are mammals.
- Some mammals are cats.
- I. All dogs are cats.
- II. Some dogs are cats.
- III. Some mammals are dogs.
- IV. All cats are mammals.
Solution Strategy (using Venn Diagrams):
- Diagram Statement 1: Draw a circle for 'Dogs' completely inside a larger circle for 'Mammals'.
- Diagram Statement 2: Draw a circle for 'Cats'. It must overlap with 'Mammals' (some mammals are cats). The overlap region represents mammals that are cats.
- Analyze Conclusions:
- I. All dogs are cats: Is the 'Dogs' circle completely inside the 'Cats' circle? No. Invalid.
- II. Some dogs are cats: Is there an overlap between 'Dogs' and 'Cats'? Not necessarily. The 'Dogs' circle could be entirely outside the 'Cats' circle, even though both are within 'Mammals'. Invalid.
- III. Some mammals are dogs: Is there an overlap between 'Mammals' and 'Dogs'? Yes, because 'All dogs are mammals' means the 'Dogs' circle is inside 'Mammals'. This implies some mammals (all the dogs) are indeed dogs. Valid.
- IV. All cats are mammals: Does the 'Cats' circle have to be entirely within 'Mammals'? Not necessarily. The statement "Some mammals are cats" only guarantees an overlap. It's possible some cats are not mammals. However, in standard syllogism questions, we assume the categories are well-defined, and if 'cats' are mentioned in relation to 'mammals', they are usually considered a subset or overlapping set. But based STRICTLY on the given premises, we cannot conclude ALL cats are mammals. If the premise was "All cats are mammals", then it would be true. Given "Some mammals are cats", it's possible some cats exist outside the mammal category. Therefore, strictly speaking, this conclusion is not guaranteed by the premises.
Correct Conclusion: Only Conclusion III logically follows from the given statements.
- If both premises are affirmative, the conclusion must be affirmative.
- If one premise is negative, the conclusion must be negative.
- If both premises are negative, no conclusion can be drawn.
- The middle term (the term appearing in both premises but not the conclusion) must be distributed at least once.
- A term distributed in the conclusion must be distributed in the premise.
3. Inductive Reasoning
This involves forming generalizations or hypotheses based on specific observations or examples. It moves from specific instances to broader principles.
Common Sub-types:
- Pattern Recognition: Identifying the next item in a series (numbers, letters, figures).
- Analogy: Finding a relationship between a pair of words/concepts and applying it to another pair.
Example: Pattern Recognition (Number Series)
Series: 3, 7, 15, 31, ?
Solution Strategy:
- Look for differences: 7-3=4, 15-7=8, 31-15=16. The differences are doubling (4, 8, 16).
- Predict the next difference: The next difference should be 16 * 2 = 32.
- Calculate the next term: 31 + 32 = 63.
Alternative Pattern: Notice that each term is one less than a power of 2 multiplied by 2, or simply (2^n) - 1, or (Previous Term * 2) + 1. 3 = (2^2) - 1 7 = (2^3) - 1 15 = (2^4) - 1 31 = (2^5) - 1 Next term = (2^6) - 1 = 64 - 1 = 63. Or, 3*2 + 1 = 7; 7*2 + 1 = 15; 15*2 + 1 = 31; 31*2 + 1 = 63.
- Arithmetic progression (constant difference)
- Geometric progression (constant ratio)
- Squares, cubes
- Alternating series
- Prime numbers
- Combinations of the above (e.g., difference of squares)
- Fibonacci-like sequences
4. Verbal Reasoning
This type focuses on language and comprehension skills, assessing your ability to understand written text, identify logical connections between ideas, and evaluate arguments presented in words.
Common Sub-types:
- Reading Comprehension: Understanding passages and answering questions based on them.
- Sentence Completion: Filling in blanks to create a meaningful and grammatically correct sentence.
- Error Spotting/Sentence Improvement: Identifying grammatical errors or suggesting better phrasing.
- Analogies: Finding relationships between words.
General Tips for Logical Reasoning
- Read Carefully: Understand the question and all conditions thoroughly before attempting to solve.
- Be Systematic: Use diagrams, tables, or step-by-step methods. Don't jump to conclusions.
- Practice Regularly: The more you practice, the better you'll become at recognizing patterns and applying logic.
- Understand Keywords: Words like "all," "some," "none," "only," "immediately," "except," "if...then" carry specific logical meanings.
- Eliminate Options: In multiple-choice questions, try to eliminate incorrect options first.
- Time Management: Allocate time wisely. Some questions are quicker than others.
Data Sufficiency
Data Sufficiency (DS) questions are a unique type of problem that tests your ability to evaluate whether the given information is sufficient to answer a specific question, rather than actually solving the question itself. These questions are common in many competitive exams, including the SBI Clerk Preliminary Examination.
How Data Sufficiency Questions Work
Each question consists of:
- A question statement.
- Two statements, labeled (1) and (2), providing some information.
Your task is to determine if the information in statement (1) alone, statement (2) alone, both statements together, or neither statement is sufficient to answer the question posed.
The Five Standard Options
You will always be given five options to choose from:
- Statement (1) ALONE is sufficient to answer the question, but statement (2) ALONE is not sufficient.
- Statement (2) ALONE is sufficient to answer the question, but statement (1) ALONE is not sufficient.
- Both statements (1) and (2) TOGETHER are sufficient to answer the question, but NEITHER statement ALONE is sufficient.
- EITHER statement (1) OR statement (2) is sufficient to answer the question.
- Statements (1) and (2) TOGETHER are NOT sufficient to answer the question.
Types of Questions in Data Sufficiency
Data Sufficiency questions can appear in various sections, including Quantitative Aptitude (Arithmetic, Algebra, Geometry) and Reasoning Ability (Logical problems, Blood Relations, Directions, etc.).
1. Quantitative Data Sufficiency
These questions involve mathematical or numerical problems. You need to determine if the given statements provide enough data to find a unique numerical answer or to determine a specific value.
Example (Quantitative):
Question: What is the value of 'x'?
Statement (1): 2x + 4 = 10
Statement (2): x2 = 9
Analysis:
- Statement (1): 2x + 4 = 10 => 2x = 6 => x = 3. This statement alone gives a unique value for 'x'. So, statement (1) is sufficient.
- Statement (2): x2 = 9 => x = 3 or x = -3. This statement gives two possible values for 'x', so it is not sufficient to determine a unique value.
Conclusion: Since statement (1) alone is sufficient, the answer is Option 1.
Example 2 (Quantitative - Geometry):
Question: What is the area of a rectangle?
Statement (1): The length of the rectangle is 10 units.
Statement (2): The perimeter of the rectangle is 30 units.
Analysis:
- Statement (1): Length = 10. We don't know the width. Area = Length * Width = 10 * Width. Not sufficient.
- Statement (2): Perimeter = 2 * (Length + Width) = 30 => Length + Width = 15. We don't know the individual values of length and width. Not sufficient.
- Statements (1) and (2) Together: Length = 10 and Length + Width = 15. Substituting Length = 10 into the second equation gives 10 + Width = 15 => Width = 5. Now we have both Length = 10 and Width = 5. Area = 10 * 5 = 50. We can find a unique area.
Conclusion: Both statements together are sufficient. The answer is Option 3.
2. Reasoning Data Sufficiency
These questions are based on logical reasoning principles. You need to determine if the given statements provide enough information to definitively answer a logical question (e.g., "Is person A taller than person B?", "What is the direction of P from Q?").
Example (Reasoning - Blood Relations):
Question: How is P related to R?
Statement (1): R is the son of S, and S is the sister of P's mother.
Statement (2): P is the grandson of T, and T is the father of R's mother.
Analysis:
- Statement (1):
- R is son of S.
- S is sister of P's mother.
- This means P's mother and S are sisters. R's mother is S. So, R's mother is P's mother's sister.
- Therefore, R is P's cousin (maternal cousin). P is R's cousin.
- Statement (2):
- P is grandson of T.
- T is father of R's mother.
- This means R's mother is the daughter of T.
- P is grandson of T, so P is either son of T's son or daughter.
- R's mother is T's daughter.
- This tells us about P's and R's relationship to T and R's mother, but doesn't directly link P and R definitively. P could be the son of T's son (who is R's father) or the son of T's daughter (who is R's mother). If P is the son of R's mother, they are siblings. If P is the son of R's father (T's other child), they are cousins. Not sufficient.
Conclusion: Statement (1) alone is sufficient. The answer is Option 1.
Example 2 (Reasoning - Directions):
Question: In which direction is Ravi facing?
Statement (1): Ravi starts walking North, turns right, and then turns left.
Statement (2): Ravi starts walking West, turns right, and then turns right again.
Analysis:
- Statement (1): Starts North. Turns right (now facing East). Turns left (now facing North again). Final direction: North. Sufficient.
- Statement (2): Starts West. Turns right (now facing North). Turns right again (now facing East). Final direction: East. Sufficient.
Conclusion: Either statement alone is sufficient. The answer is Option 4.
Strategies for Solving Data Sufficiency Questions
- Understand the Question Clearly: Make sure you know exactly what needs to be found (a specific value, a relationship, a direction, etc.).
- Analyze Statement (1) Alone:
- Assume statement (1) is true and see if you can answer the question definitively.
- If yes, check if statement (2) alone is also sufficient.
- If statement (1) is sufficient, and statement (2) is NOT sufficient, then the answer is Option 1.
- If statement (1) is sufficient, and statement (2) IS ALSO sufficient, then the answer is Option 4.
- Analyze Statement (2) Alone:
- If statement (1) was NOT sufficient, now assume statement (2) is true and see if you can answer the question definitively.
- If yes, then the answer is Option 2.
- If statement (2) is also NOT sufficient, proceed to the next step.
- Analyze Both Statements Together:
- If NEITHER statement (1) nor statement (2) alone was sufficient, combine them. Assume both are true.
- Can you answer the question definitively now?
- If yes, the answer is Option 3.
- If no, even with both statements, the answer is Option 5.
Common Pitfalls in Data Sufficiency
- Solving the Problem Unnecessarily: Don't spend time finding the actual answer if you only need to determine sufficiency.
- Confusing "Possible" with "Definite": A statement is sufficient only if it leads to a definite, unique answer or conclusion. If multiple possibilities exist, it's not sufficient.
- Ignoring the Options: Always refer back to the five standard options to select the correct choice.
- Making Unstated Assumptions: Stick strictly to the information provided. For example, in number problems, don't assume a variable is positive unless stated or implied (e.g., length cannot be negative).
- Incorrectly Combining Statements: Ensure you correctly analyze the synergy when using both statements together.
Data Sufficiency questions require practice to develop speed and accuracy in evaluating information. By systematically analyzing each statement and the combination, you can master this question type.