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.

Q31

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: leaf 42 iron 58 jeep 19 king 31
Step 1: iron leaf 42 58 jeep 19 king 31
Step 2: iron 19 leaf 42 58 jeep king 31
Step 3: iron 19 jeep leaf 42 58 king 31
Step 4: iron 19 jeep 31 leaf 42 58 king
Step 5: iron 19 jeep 31 king leaf 42 58
Step 6: iron 19 jeep 31 king 42 leaf 58
Step 6 is the last step of the above input.

Given the Input: king 58 jeep 19 leaf 31 iron 42
How many steps will be required to complete the arrangement?

medium
Q32

For the same Input: king 58 jeep 19 leaf 31 iron 42
What will be Step II?

medium
Q33

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

medium
Q34

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

medium
Q35

For the same Input, which step number is this: 'iron 19 jeep 31 king 42 leaf 58'?

medium