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 : joy far 35 27 16 96 height star
Step I: 96 joy far 35 27 16 height star
Step II: 96 far joy 35 27 16 height star
Step III: 96 far 35 joy 27 16 height star
Step IV: 96 far 35 height joy 27 16 star
Step V: 96 far 35 height 27 joy 16 star
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.

  1. Step II of an input is : 67 ask 34   12   46 ask for my date
    Which of the following is definitely the input ?











  1. View Hint View Answer Discuss in Forum

    In the first step, the largest number goes on the leftmost position pushing the rest line rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left pushing the rest line rightward. Thus the number and words get arranged alternately till the numbers are place in the descending order and the words in the alphabetical order.

    Correct Option: D

    In the first step, the largest number goes on the leftmost position pushing the rest line rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left pushing the rest line rightward. Thus the number and words get arranged alternately till the numbers are place in the descending order and the words in the alphabetical order.

    We can't proceed backward.


  1. Input : always go there 39   62   47 time 24
    Which of the following steps will be the last but one ?











  1. View Hint View Answer Discuss in Forum

    In the first step, the largest number goes on the leftmost position pushing the rest line rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left pushing the rest line rightward. Thus the number and words get arranged alternately till the numbers are place in the descending order and the words in the alphabetical order.

    Correct Option: E

    In the first step, the largest number goes on the leftmost position pushing the rest line rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left pushing the rest line rightward. Thus the number and words get arranged alternately till the numbers are place in the descending order and the words in the alphabetical order.

    Input : always go there 39   62   47 time 24
    Step I  : 62 always go there 39   47 time 24
    Step II  : 62 always 47 go there 39 time 24
    Step III  : 62 always 47 go 39 there time 24
    Step IV  : 62 always 47 go 39 there 24 time
    Hence steps III will be the last but one.



  1. Input : bake never store 51   26   33 age 49
    Which of the following will be step V ?











  1. View Hint View Answer Discuss in Forum

    In the first step, the largest number goes on the leftmost position pushing the rest line rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left pushing the rest line rightward. Thus the number and words get arranged alternately till the numbers are place in the descending order and the words in the alphabetical order.

    Correct Option: A

    In the first step, the largest number goes on the leftmost position pushing the rest line rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left pushing the rest line rightward. Thus the number and words get arranged alternately till the numbers are place in the descending order and the words in the alphabetical order.
    Input: bake never store 51 26 33 age 49
    Step I: 51 bake never store 26 33 age 49
    Step II: 51 age bake never store 26 33 49
    Step III: 51 age 49 bake never store 33 26
    Step IV: 51 age 49 bake 33 never store 26
    Step V: 51 age 49 bake 33 never 26 store


  1. Input: organize 19 12 stable room 35 72 house
    How many steps will be required to complete the arrangement?











  1. View Hint View Answer Discuss in Forum

    In the first step, the largest number goes on the leftmost position pushing the rest line rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left pushing the rest line rightward. Thus the number and words get arranged alternately till the numbers are place in the descending order and the words in the alphabetical order.

    Correct Option: D

    In the first step, the largest number goes on the leftmost position pushing the rest line rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left pushing the rest line rightward. Thus the number and words get arranged alternately till the numbers are place in the descending order and the words in the alphabetical order.

    Input: organize 19 12 stable room 35 72 house
    Step I: 72 organize 19 12 stable room 35 house
    Step II: 72 house organize 19 12 stable room 35
    Step III: 72 house 35 organize 19 12 stable room
    Step IV: 72 house 35 organize 19 room 12 stable



Direction: Study the following information carefully and answer the given question.
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: day 74 night 36 25 68 all for
Step I: all day 74 night 36 25 68 for
Step II: all 74 day night 36 25 68 for
Step III: all 74 day 68 night 36 25 for
Step IV: all 74 day 68 for night 36 25
Step V: all 74 day 68 for 36 night 25
And Step V is the last step of the rearrangement of the above input.
As per the rule followed in the above steps, find out in each of the following questions the appropriate step for the given input.

  1. Input : war 52 and peace 43 16 now 24
    How many more step will be required to complete the rearrangement?











  1. View Hint View Answer Discuss in Forum

    In the first step, the word that comes first in the alphabetical order shifts to the left most position. While the remaining line shifts rightward. In the next step, the largest number shifts to the second position from left, pushing the remaining line shifts rightward. This goes on alternately till the words get arranged in an alphabetical order and the number in a descending order at alternately position.

    Correct Option: C

    In the first step, the word that comes first in the alphabetical order shifts to the left most position. While the remaining line shifts rightward. In the next step, the largest number shifts to the second position from left, pushing the remaining line shifts rightward. This goes on alternately till the words get arranged in an alphabetical order and the number in a descending order at alternately position.

    Input: war 52 and peace 43 16 now 24
    Step I: and war 52 peace 43 16 now 24
    Step II: and 52 war peace 43 16 now 24
    Step III: and 52 now war peace 43 16 24
    Step IV: and 52 now 43 war peace 16 24
    Step V: and 52 now 43 peace war 16 24
    Step VI: and 52 now 43 peace 24 war 16