AbhiPrep

Input-Output

80 Questions

Practice Input-Output questions with answers and step-by-step solutions. These problems are curated from recent campus placement test papers (TCS, Infosys, Wipro, Cognizant, Accenture) and competitive government exams (SSC CGL, Bank PO, RRB NTPC, UPSC).

Input-Output: Reference Context & Data Shared for questions below
Reference Caselet

Reasoning Ability: Input-Output (80 Questions)

Read the given instructions/statements carefully and answer the questions that follow.

Q1

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: dog 45 apple 89 bat 12 cat 23
Step 1: apple dog 45 89 bat 12 cat 23
Step 2: apple 12 dog 45 89 bat cat 23
Step 3: apple 12 bat dog 45 89 cat 23
Step 4: apple 12 bat 23 dog 45 89 cat
Step 5: apple 12 bat 23 cat dog 45 89
Step 6: apple 12 bat 23 cat 45 dog 89
Step 6 is the last step of the above input.

Given the Input: cat 89 bat 12 dog 23 apple 45
How many steps will be required to complete the arrangement?

medium
Q2

For the same Input: cat 89 bat 12 dog 23 apple 45
What will be Step II?

medium
Q3

For the same Input, which element is 3rd from the right in Step III?

medium
Q4

For the same Input, what is the position of 'dog' in Step I?

medium
Q5

For the same Input, which step number is this: 'apple 12 bat 23 cat 45 dog 89'?

medium