రీజనింగ్
INPUT-OUTPUT
Directions: 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. (All the numbers are two-digit numbers.)
Input: tall 48 13 rise alt 99 76 32 wise jar high 28 56 barn
Step I: 13 tal1 48 rise 99 76 32 wise jar high 28 56 barn alt
Step II: 28 13 tall 48 rise 99 76 32 wise jar high 56 alt bam
Step III: 32 28 13 tall 48 rise 99 76 wise jar 56 alt barn high
Step IV: 48 32 28 13 tall rise 99 76 wise 56 alt barn high jar
Step V: 56 48 32 28 13 tall 99 76 wise alt barn high jar rise
Step VI: 76 56 48 32 28 13 99 wise alt barn high jar rise tall
Step VII: 99 76 56 48 32 28 13 alt barn high jar rise tall wise
And Step VII is the last step of the above input, as the desired arrangement is obtained.
As per the rules followed in the above steps, find out in each of the following questions the appropriate step for the given input.
Analysis: On observing the last step it is observed that numbers are arranged in the descending order from left end and the words are arranged in the alphabetical order after the numbers from the left end. The first six steps reveal that one number and one word are arranged in the respective order in each step. Each time the remaining number/ numbers are pushed to the right. The smallest number comes to the left end and the word which comes first in the alphabetical order goes to the right end. The next number adds to the left end and the next word adds to the right end.
Questions:
Input: 84 why sit 14 32 not best ink feet 51 27 vain 68 92 (All the numbers are two-digit numbers.)
1. Which step number is the following output?
32 27 14 84 why sit not 51 vain 92 68 feet best ink
1) Step V 2) Step VI
3) Step IV 4) Step III
5) There is no such step.
A: 5.
There will no such step. On observing the given output, the numbers 32, 27 and 14 are in descending order. This indicates the III step of output. But in the III step the last three words will be 'best, feet, ink'. But in the given output the last three words are 'feet, best, ink'. For the given input, the given output can't be any step.
2. Which word/number would be at 5th position from the right in Step V?
1) 1 2) 92 3) feet
4) best 5) why
A: 4.
In the V step, the first five numbers are arranged in descending order and five words are arranged in the reverse alphabetical order from the right end or alphabetical order from the left end. So the word in the 5th position from the right end will be 'best'.
3. How many elements (words or numbers) are there between 'feet' and '32' as they appear in the last step of the output?
1) One 2) Three 3) Four 4) Five 5) Seven
A: 2.
The last step of output for the given input will be 92 84 68 51 32 27 14 best feet ink not sit vain why The elements between 'feet' and '32' are 27, 14 and best. So the number of elements is 3.