A device rearranges numbers step by step in a particular order according to a set of rules. The device stops when the final result is obtained. Step V is the final for this device. Input: 86 17 35 03 20 99 64 08 Step I: 99 86 17 35 03 20 64 08 Step II: 99 86 64 17 35 03 20 08 Step III: 99 86 64 35 17 03 20 08 Step IV: 99 86 64 35 20 17 03 08 Step V: 99 86 64 35 20 17 08 03 Study the above arrangement carefully and answer this question. Which one of the following would be the last step for the input below? Input: 02 30 40 20 11 08
A device rearranges numbers step by step in a particular order according to a set of rules. The device stops when the final result is obtained. Step V is the final for this device. Input: 86 17 35 03 20 99 64 08 Step I: 99 86 17 35 03 20 64 08 Step II: 99 86 64 17 35 03 20 08 Step III: 99 86 64 35 17 03 20 08 Step IV: 99 86 64 35 20 17 03 08 Step V: 99 86 64 35 20 17 08 03 Study the above arrangement carefully and answer this question. Which one of the following would be the last step for the input below? Input: 02 30 40 20 11 08 Correct Answer Step V
Input: 86 17 35 03 20 99 64 08
Step I: 99 86 17 35 03 20 64 08
Step II: 99 86 64 17 35 03 20 08
Step III: 99 86 64 35 17 03 20 08
Step IV: 99 86 64 35 20 17 03 08
Step V: 99 86 64 35 20 17 08 03
After studying the above arrangement carefully we observe that numbers with the highest value shift to the left hand side in such a way that the final result obtained is arranged in descending order.
Input: 02 30 40 20 11 08
Step I: 40 02 30 20 11 08
Step II: 40 30 02 20 11 08
Step III: 40 30 20 02 11 08
Step IV: 40 30 20 11 02 08
Step V: 40 30 20 11 08 02
Clearly, Step V would be the last step for the input below.
Hence, ‘Step V’ is the correct answer.