Input Output
Direction: 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 rearrange them following a particular rule in each step. The following is an illustration of input and rearrangement.
Input : shop 17 table 20 53 oven desk 39
Step I : 17 shop table 20 53 oven desk 39
Step II : 17 table shop 20 53 oven desk 39
Step III : 17 table 20 shop 53 oven desk 39
Step IV : 17 table 20 shop 39 53 oven desk
Step V : 17 table 20 shop 39 oven 53 desk
and step V is the last step of the rearrangement.
As per the rule followed in the above steps, find out in each of the following questions the appropriate step for the given input.
- Step III of an input is : 21 victory 30 joint 64 47 all gone
How many more step will be required to complete the rearrangement?
-
View Hint View Answer Discuss in Forum
In the first step, the smallest number comes to the leftmost position and the remaining line shift rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left and the remaining line sift rightward. This goes alternately till all the number are ranged in ascending order and all the words in reverse alphabetical order at alternate positions.
Correct Option: E
In the first step, the smallest number comes to the leftmost position and the remaining line shift rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left and the remaining line sift rightward. This goes alternately till all the number are ranged in ascending order and all the words in reverse alphabetical order at alternate positions.
Step III : 21 victory 30 joint 64 47 all gone
Step IV : 21 victory 30 joint 47 64 all gone
Step V : 21 victory 30 joint 47 gone 64 all
5 - 3 = 2 more steps will required.
- Step II of an input is : 15 yes 62 51 48 talk now gone
which of the following will be step VI?
-
View Hint View Answer Discuss in Forum
In the first step, the smallest number comes to the leftmost position and the remaining line shift rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left and the remaining line sift rightward. This goes alternately till all the number are ranged in ascending order and all the words in reverse alphabetical order at alternate positions.
Correct Option: C
In the first step, the smallest number comes to the leftmost position and the remaining line shift rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left and the remaining line sift rightward. This goes alternately till all the number are ranged in ascending order and all the words in reverse alphabetical order at alternate positions.
Step II : 15 yes 62 51 48 talk now gone
Step III : 15 yes 48 62 51 talk now gone
Step IV : 15 yes 48 talk 62 51 now gone
Step V : 15 yes 48 talk 51 62 now gone
Step VI : 15 yes 48 talk 51 now 62 gone