Reasoning Machine InputPage 3
Section-3
Study the following information carefully to answer the questions given below.
A number sorting machine when given an input of numbers, rearranges the numbers in a particular manner step by step as indicated below till all the numbers are arranged in a particular order.
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 14 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)
1. | If following is the fifth step of an input, what will be the third step ?
Step V : 17 32 43 82 69 93 49 56 99 106 | (a)17 32 43 82 69 93 49 56 99 106 | (b)17 32 82 69 43 93 49 56 99 106 | (c)17 32 82 69 93 43 49 56 99 106 | (d)Can’t be determined |
|
Answer is: DHere the rule followed is:
Step I: The smallest number becomes first and the remaining numbers shift one position
rightward. [In case the first number is small then the next number just larger than
it will become second and the rest will shift one position rightward and so on.]
Step II : The largest number among given numbers becomes last and the remaining
numbers shift one position leftward.
[In case the largest number is first from the right end, the second largest number replaces
the second number from the right end, and so on.]
These steps are repeated alternately till all the numbers get arranged in ascending order
and that will be the last step for that particular input.
2. | 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)5 | (b)6 | (c)7 | (d)8 |
|
Answer is: DHere the rule followed is:
Step I: The smallest number becomes first and the remaining numbers shift one position
rightward. [In case the first number is small then the next number just larger than
it will become second and the rest will shift one position rightward and so on.]
Step II : The largest number among given numbers becomes last and the remaining
numbers shift one position leftward.
[In case the largest number is first from the right end, the second largest number replaces
the second number from the right end, and so on.]
These steps are repeated alternately till all the numbers get arranged in ascending order
and that will be the last step for that particular input.
3. | Which of the following will be the third step for the following input ?
Input : 45 78 97 132 28 16 146 54 99 112 | (a)16 28 45 78 97 146 54 99 112 132 | (b)16 28 45 97 78 54 99 112 132 146 | (c)16 28 45 78 97 132 54 99 112 146 | (d)16 28 45 97 78 132 99 54 112 146 |
|
Answer is: C16 28 45 78 97 132 54 99 112 146
Here the rule followed is:
Step I: The smallest number becomes first and the remaining numbers shift one position
rightward. [In case the first number is small then the next number just larger than
it will become second and the rest will shift one position rightward and so on.]
Step II : The largest number among given numbers becomes last and the remaining
numbers shift one position leftward.
[In case the largest number is first from the right end, the second largest number replaces
the second number from the right end, and so on.]
These steps are repeated alternately till all the numbers get arranged in ascending order
and that will be the last step for that particular input.
4. | If the second step for an input is as given below, what will be the fifth step for the same input?
Step II: 22 49 32 88 69 132 101 185 | (a)22 32 49 88 69 101 132 185 | (b)22 32 69 49 88 101 132 185 | (c)22 32 49 69 101 88 132 185 | (d)None of these |
|
Answer is: DNone of these
Here the rule followed is:
Step I: The smallest number becomes first and the remaining numbers shift one position
rightward. [In case the first number is small then the next number just larger than
it will become second and the rest will shift one position rightward and so on.]
Step II : The largest number among given numbers becomes last and the remaining
numbers shift one position leftward.
[In case the largest number is first from the right end, the second largest number replaces
the second number from the right end, and so on.]
These steps are repeated alternately till all the numbers get arranged in ascending order
and that will be the last step for that particular input.
5. | What will be the Step II for the following input?
Input: 47 62 17 92 86 42 24 79 | (a)17 24 47 62 86 42 79 92 | (b)17 47 62 86 42 24 79 92 | (c)17 24 47 62 92 86 42 79 | (d)17 47 62 86 24 42 79 92 |
|
Answer is: B17 47 62 86 42 24 79 92
Here the rule followed is:
Step I: The smallest number becomes first and the remaining numbers shift one position
rightward. [In case the first number is small then the next number just larger than
it will become second and the rest will shift one position rightward and so on.]
Step II : The largest number among given numbers becomes last and the remaining
numbers shift one position leftward.
[In case the largest number is first from the right end, the second largest number replaces
the second number from the right end, and so on.]
These steps are repeated alternately till all the numbers get arranged in ascending order
and that will be the last step for that particular input.
Comments