Input Output


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. Step III of an input: bond 86 goal 12 33 like high 46
    Which of the following will be step VII?











  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.

    Step III: bond 86 goal 12 33 like high 46
    Step IV: bond 86 goal 46 12 33 like high
    Step V: bond 86 goal 46 high 12 33 like.
    Step VI: bond 86 goal 46 high 33 12 like.
    Step VII: bond 86 goal 46 high 33 like 12


  1. Input: mind new 27 35 19 59 own tower
    Which of the following steps will be the last but one?











  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: E

    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: mind new 27 35 19 59 own tower
    Step I: mind 59 new 27 35 19 own tower
    Step II: mind 59 new 35 27 19 own tower
    Step III: mind 59 new 35 own 27 19 tower
    Step IV: mind 59 new 35 own 27 tower 19
    Hence steps III will be the last but one.


  1. Step IV of an input: dear 63 few 51 16 29 yes now
    How many more step will be required to complete the arrangement?











  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.

    Step IV: dear 63 few 51 16 29 yes now.
    Step V: dear 63 few 51 now 16 29 yes.
    Step VI: dear 63 few 51 now 29 16 yes.
    Step VII: dear 63 few 51 now 29 yes 16


  1. Step II of an input is : cars 73 18 25 wear 49 long for
    Which of the following is definitely the input?











  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: D

    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.

    We can't proceed backward.


  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