Study the information carefully and answer the question below. An electronic device, when Fed with the numbers, rearranges the numbers in a particular order following certain rules. The following is step by step process of rearrangements for the given input of numbers.
For the given input step III is the last step. Input ’87 98 77 115 67 220 135’. Find the last output for this input. |
|||||||||||
(a) |
220 135 115 98 87 77 67 |
(b) |
220 135 115 98 77 87 67 |
||||||||
(c) |
220 135 115 77 98 87 67 |
(d) |
Cannot be determined |
Study the information carefully and answer the question below. An electronic device, when Fed with the numbers, rearranges the numbers in a particular order following certain rules. The following is step by step process of rearrangements for the given input of numbers.
For the given input step III is the last step. Input ’87 98 77 115 67 220 135’. Find the last output for this input. |
|||||||||||
(a) |
220 135 115 98 87 77 67 |
(b) |
220 135 115 98 77 87 67 |
||||||||
(c) |
220 135 115 77 98 87 67 |
(d) |
Cannot be determined |
Step I - the largest number comes at the first from left interchanging with its replacing number
Step II - the 2nd largest 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, we get, 220 135 115 98 87 77 67.