Study the information carefully and answer the question below. A number sorting machine when an input numbers, rearranges the numbers in a particular manner step by step. The following is an illustration of input.
And so on till all the numbers get arranged in ascending order. What will be the last step for the following input? Input ‘138, 63, 49, 93, 89, 122, 32, 71’ |
|||||||||||||
(a) |
32, 49, 71, 63, 89, 93, 122, 138 |
(b) |
32, 49, 63, 71, 93, 89, 122, 138 |
||||||||||
(c) |
32, 49, 63, 71, 89, 93, 122, 138 |
(d) |
Cannot be determined |
Study the information carefully and answer the question below. A number sorting machine when an input numbers, rearranges the numbers in a particular manner step by step. The following is an illustration of input.
And so on till all the numbers get arranged in ascending order. What will be the last step for the following input? Input ‘138, 63, 49, 93, 89, 122, 32, 71’ |
|||||||||||||
(a) |
32, 49, 71, 63, 89, 93, 122, 138 |
(b) |
32, 49, 63, 71, 93, 89, 122, 138 |
||||||||||
(c) |
32, 49, 63, 71, 89, 93, 122, 138 |
(d) |
Cannot be determined |
Step I - the smallest number comes at the first from left and remaining lines towards right
Step II - the 2nd smallest number comes at the second position from left and remaining lines towards right
Step III - the 3rd smallest number comes at the 3rd position from left and remaining lines towards right. Further steps will be obtained in the same manner till all the words gets arranged in ascending order.
By applying above rules for given input, last step will be the one in which all the numbers get arranged in ascending order.