A number sorting machine when given an input of numbers, rearranges them in a particular manner step-by-step as indicated below till all the numbers are arranged.
Question 1:
A number sorting machine when given an input of numbers, rearranges them in a particular manner step-by-step as indicated below till all the numbers are arranged. Given below is an illustration of this arrangement. Input : 39 121 48 18 76 112 14 45 63 96 Step I : 14 39 121 48 18 76 112 45 63 96 Step II : 14 39 48 18 76 112 45 63 96 121 Step III : 14 18 39 48 76 112 45 63 96 121 Step IV : 14 18 39 48 76 45 63 96 112 121 Step V : 14 18 39 45 48 76 63 96 112 121 Step VI : 14 18 39 45 48 63 76 96 112 121 And Step VI is the last step for this input. How many steps will be required for getting the final output for the following input? Input : 101 85 66 49 73 39 142 25 115 74
A.Five
B.Seven
C.Six
D.Eight
These questions are from this test. Would you like to take a practice test?