Input Output SNAP 2020

Q1. Direction:  Study the following information carefully to answer the given questions.

Number arrangement machine when given an input line of numbers rearranges them by following a particular rule in each step. The following is an illustration of input and rearrangement.

Input: 92 babu India 50 danger 12 grass figure 75 18

Step I: babu India 50 danger 12 grass figure 75 18 92

Step II: danger babu India 50 12 grass figure 18 75 92

Step III: figure danger babu India 12 grass 18 50 75 92

Step IV: grass figure danger babu India 12 18 50 75 92

Step V: India grass figure danger babu 12 18 50 75 92

Step V is the last step.

Input: 84 Arun jockey 65 earth 20 horse gentle 80 22

How many words or numbers are there between the one which is second from the left end and ‘22’ in step IV?

  1. One
  2. More than three
  3. Three
  4. None
EXPLANATION

Answer: 2

Logic: At each step, a word in the alphabetical order is arranged from right to left in the increasing order in the left end and a number in the decending order is arranged from left to right in the right end.

Input: 84 arun jockey 65 earth 20 horse gentle 80 22

Step I: arun jockey 65 earth 20 horse gentle 80 22 84

Step II: earth arun jockey 65 20 horse gentle 2280 84

Step III: gentle earth arun jockey 20 horse 2265 80 84

Step IV: horse gentle earth arun jockey 2022 6580 84

Step V: jockey horse gentle earth arun 20 22 65 80 84

Step V is the last step.