Read the information carefully and answer the question below. A number rearrangement machine when an input of numbers, rearranges the numbers in a particular manner step by step as indicated below-till all the numbers are arranged in a particular order.
Which of the following will be the first step for the following input? Input ‘100 500 2 400 20 3 800 1 999 666’ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(a) |
1 500 2 400 20 3 800 100 999 666 |
(b) |
2 500 100 400 20 3 800 1 999 666 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(c) |
999 500 2 400 20 3 800 1 100 666 |
(d) |
Cannot be determined |
Read the information carefully and answer the question below. A number rearrangement machine when an input of numbers, rearranges the numbers in a particular manner step by step as indicated below-till all the numbers are arranged in a particular order.
Which of the following will be the first step for the following input? Input ‘100 500 2 400 20 3 800 1 999 666’ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(a) |
1 500 2 400 20 3 800 100 999 666 |
(b) |
2 500 100 400 20 3 800 1 999 666 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(c) |
999 500 2 400 20 3 800 1 100 666 |
(d) |
Cannot be determined |
Final arrangement of the input shows that there are two series- one is ascending order and other in descending order. In the first step, the smallest number is exchanged with the first number of the input. In the second step, largest number is exchanged with the second number of the step I. in the third step, second smallest number is exchanged with the third number of step II. Likewise, series continues to get arranged.
By applying the above rule, we get 1 500 2 400 20 3 800 100 999 666.