Input Output 4

Directions (1-6): Study the given information and answer the following questions.

A word and number arrangement machine when given an input line of words and numbers rearranges them following a particular rule. The following is an illustration of input and its rearrangement:

Input: bag new 15 12 20 ask ball 22 figure 25
Step I: 12 15 bag new 20 ask ball 22 figure 25
Step II: 12 15 ask bag new 20 ball 22 figure 25
Step III: 12 15 ask bag 20 22 new ball figure 25
Step IV: 12 15 ask bag 20 22 ball figure new 25
Step V: 12 15 ask bag 20 22 ball figure 25 new

Step V is the last step of the rearrangement. As per the rules followed in the above steps, find out in each of the following questions the appropriate step for the following input.

Input: 46 16 professor male 31 correct 33 35 39 female doctor 42 study

Solution

Solution:-
The machine rearranges the numbers and words in such a manner that the numbers are arranged in each alternate step in ascending order while words are also arranged in each alternate step in alphabetical order. In each alternate step two numbers and two words are arranged.
Input: 46 16 professor male 31 correct 33 35 39 female doctor 42 study
Step I: 16 31 46 professor male correct 33 35 39 female doctor 42 study
Step II: 16 31 correct doctor 46 professor male 33 35 39 female 42 study
Step III: 16 31 correct doctor 33 35 46 professor male 39 female 42 study
Step IV: 16 31 correct doctor 33 35 female male 46 professor 39 42 study
Step V: 16 31 correct doctor 33 35 female male 39 42 46 professor study
Step VI: 16 31 correct doctor 33 35 female male 39 42 professor study 46
Step VI is the last step.

1. Which element is third to the right of ‘female’ in Step V?
1) 35               2) professor                 3) study                4) 42                  5) None of these

Answer

Answer:- (4)

1. How many steps will be required to complete the arrangement of the given input?

1) Five              2) Six             3) Seven               4) Eight                 5) None of these

Answer

 Answer:- (2)

3. Which of the following is the third element from the left end of Step III?

1) 35                2) 46                3) correct               4) doctor                 5) None of these

Answer

Answer:- (3)

4. What is the position of ‘male’ in the final step?
1) 7th from the left                2) 2nd from the right                3) 8th from the left              4) 5th from the right
5) None of these

Answer

Answer:- (3)

5. Which step number is the following output?
16 31 correct doctor 33 35 female male 39 42 46 professor study
1) Step V                 2) Step VI               3) Step VII               4) There is no such step               5) None of these

Answer

Answer:- (1)

6. Which of the following steps is the last step but one? 
1) Step III                2) Step V                3) Step VI                 4) Step IV                  5) None of these

Answer

 Answer:- (2)

Leave a Comment

Your email address will not be published.