• Home
  • Study the following information carefully and answer the given questions: A word and number arrangement machine when given an input line of words and numbers rearranges them following a particular rule in each step.
Question 1:
Study the following information carefully and answer the given questions:
A word and number arrangement machine when given an input line of words and numbers rearranges them following a particular rule in each step. The following is an illustration of input and rearrangement:
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
This is the final arrangement and step VI is the last step for this input.
What will be the last step for the following input?

Input: 138 63 49 93 89 122 32 71
A. 32 49 71 63 89 93 122 138
B. 32 49 63 71 93 89 122 138
C. 32 49 63 71 89 93 122 138
Feedback Step I: The smallest number becomes first and the remaining numbers shift one position rightward.
Step II: The largest number among given numbers becomes last and the remaining numbers shift one position leftward.
The steps are repeated alternately till all the numbers get arranged in ascending order and that will be that last step for that particular input.
As it is certain that the last step will be strictly in ascending order hence we do not require to go through procedure.
D. Cannot be determined

These questions are from this test. Would you like to take a practice test?

Practice Sequential Output Online Test 4 | Englishfreetest.com