Study the following information to answer the given questions :
A word and number arrangen gel it machine when given an input line of words and numbers rearranges them following a particular rule. The following is an illustration of input and rearrangement.
Input : 52 peak 91 snow freeze 46 cold 15 high 31 73 trek
Step I : 15 52 peak snow freeze 46 cold high 31 73 trek 91
Step II : 15 31 52 peak snow freeze 46 cold high trek 73 91
Step III : 15 31 46 peak snow freeze cold high trek 52 73 91
Step IV : 15 31 46 cold peak snow freeze high trek 52 73 91
Step V : 15 31 46 cold freeze peak snow high trek 52 73 91
Step VI : 15 31 46 cold freeze high peak snow trek 52 73 91
Step VI is the last step of the rearrangement. As per the rules followed in the above steps, find out in each of the following questions the appropriate steps for the given input. Input for the questions.
Input : 67 hot sun 19 best 83 ice 49 ace 77 cut 37
Which Step number would he the following output? 19 37 49 ace best hot sun ice cut 67 77 83
The pattern followed is that in the first step, the smallest and the largest numbers are placed at first and last positions respectively. In the second step, the second lowest and the second largest numbers are placed at second and second last positions respectively and so on.
After the numbers are arranged, the words are arranged in ascending order based on their first letters alphabetically.
Input : 67 hot sun 19 best 83 ice 49 ace 77 cut 37
Step I : 19Â 67 hot sun best ice 49 ace 77 cut 37 83
Step II : 19 37 67 hot sun best ice 49 ace cut 77 83
Step III : 19 37 49 hot sun best ice ace cut 67 77 83
Step IV : 19 37 49 ace hot sun best ice cut 67 77 83
Step V : 19 37 49 ace best hot sun ice cut 67 77 83
Step VI : 19 37 49 ace best cut hot sun ice 67 77 83
Step VII :Â 19 37 49 ace best cut hot ice sun 67 77 83
Step VII is the last step of the rearrangement.
=> Ans - (C)
Create a FREE account and get: