Directions: An electronic device, when fed with the numbers, rearranges them in a particular order following certain rules. The following is a step by step process of rearrangements, for the given input of numbers.
Input : 5 28 12 74 3 11 31 42
Step I : 74 5 28 12 3 11 31 42
Step II : 74 3 5 28 12 11 31 42
Step III: 74 3 42 5 28 12 11 3
Step IV: 74 3 42 5 28 11 12 3
(For the given input, step IV is the last step)
Which of the following will be the step III for the following input?
Input: 89 24 44 25 9 14 5 2
-
44 5 14 25 89 9 2 24
-
44 5 14 9 24 2 89 25
-
44 5 24 9 85 25 14 2
-
None of the above
D
Correct answer
Explanation
The pattern of the arrangement of steps of the given input suggests that the given input is split into two sections - one for even numbers and other for odd numbers. Then, these numbers are arranged in such a way that even numbers are arranged in a descending order and odd numbers are arranged in an ascending order.
Input : 89 24 44 25 09 14 5 2
Step I : 44 89 24 25 09 14 5 2
Step II : 44 05 89 24 25 09 14 2
Step III : 44 05 24 89 25 09 14 2
Since none of the options contains the correct order of the input as shown by step III, so the correct answer is (4).