An electronic device rearranges numbers step by step according to a fixed rule and then stops when the final result is obtained. For the input 84 15 35 04 18 96 62 08, the sequence of operations is: Step 1: 96 84 15 35 04 18 62 08; Step 2: 96 84 62 15 35 04 18 08; Step 3: 96 84 62 35 15 04 18 08; Step 4: 96 84 62 35 18 15 04 08; Step 5: 96 84 62 35 18 15 08 04, and Step 5 is the last step. For the input 16 09 24 28 15 04, what will be the third step produced by the device when it follows the same rule?
Aptitude
Sequential Output Tracing
Difficulty: Medium
Choose an option
-
A28 24 15 16 04 09
-
B28 24 16 15 09 04
-
C24 28 15 16 09 04
-
D28 24 16 15 04 09
-
E16 28 24 15 09 04
Answer
Correct Answer: 28 24 16 15 09 04
Explanation
Introduction / Context: This is another input–output device question where numbers are rearranged in several steps. You are shown one complete example and then asked to determine the third step for a different input under the same rule. Detecting how the device chooses and moves numbers at each step is the core of the problem. Given Data / Assumptions:
- Example input: 84 15 35 04 18 96 62 08.
- Example steps:
- Step 1: 96 84 15 35 04 18 62 08
- Step 2: 96 84 62 15 35 04 18 08
- Step 3: 96 84 62 35 15 04 18 08
- Step 4: 96 84 62 35 18 15 04 08
- Step 5: 96 84 62 35 18 15 08 04 (final)
- New input to process: 16 09 24 28 15 04.
- We must find what the third step will be.
- At Step 1, the largest number (96) is moved to the first position.
- At Step 2, the next largest number among the remaining (62) is moved to the second position.
- At each step, the device selects the largest number from the unsorted portion and places it in the next leftmost unsorted position, while the other numbers retain their order.