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 of input and rearrangement.

Input : base 35 or gone 62 49 87 ahead
Step I : 87 base 35 or gone 62 49 ahead
Step II : 87 ahead base 35 or gone 62 49
Step III : 87 ahead 62 base 35 or gone 49
Step IV : 87 ahead 62 base 49 35 or gone
Step V : 87 ahead 62 base 49 gone 35 or
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. Input : power fail now 52 24 75 gate 34
    Which of the following will be step the last but one?











  1. View Hint View Answer Discuss in Forum

    In the first step, the largest number comes to the first position and the remaining line shift rightward. In the next step the word that comes first in the alphabetical order goes on to occupy the second position pushing the rest of the shift rightward. This goes alternately till all the number are arranged in a descending order and all the words in alphabetical at alternate positions.

    Correct Option: C

    In the first step, the largest number comes to the first position and the remaining line shift rightward. In the next step the word that comes first in the alphabetical order goes on to occupy the second position pushing the rest of the shift rightward. This goes alternately till all the number are arranged in a descending order and all the words in alphabetical at alternate positions.

    Input : power fail now 52 24 75 gate 34
    Step I : 75 power fail now 52 24 gate 34
    Step II : 75 fail power now 52 24 gate 34
    Step III : 75 fail 52 power now 24 gate 34
    Step IV : 75 fail 52 gate power now 24 34
    Step V : 75 fail 52 gate 34 power now 24
    Step VI : 75 fail 52 gate 34 now power 24
    Step VII : 75 fail 52 gate 34 now 24 power
    Hence step VI will be the last but one.





  1. Input : how was your stay 56 25 36 64
    Which of the following will be step VI?











  1. View Hint View Answer Discuss in Forum

    In the first step, the largest number comes to the first position and the remaining line shift rightward. In the next step the word that comes first in the alphabetical order goes on to occupy the second position pushing the rest of the shift rightward. This goes alternately till all the number are arranged in a descending order and all the words in alphabetical at alternate positions.

    Correct Option: D

    In the first step, the largest number comes to the first position and the remaining line shift rightward. In the next step the word that comes first in the alphabetical order goes on to occupy the second position pushing the rest of the shift rightward. This goes alternately till all the number are arranged in a descending order and all the words in alphabetical at alternate positions.

    Input: how was your stay 56 25 36 64
    Step I: 64 how was your stay 56 25 36
    Step II: 64 how 56 was your stay 25 36
    Step III: 64 how 56 stay was your 25 36
    Step IV: 64 how 56 stay 36 was your 25
    Step V: 64 how 56 stay 36 was 25 your
    Since the line gets fully arranged in step V there will be no step VI



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.

  1. Input : desire 59 63 all few 38 46 zone
    How many steps will be required to complete the rearrangement?











  1. 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: B

    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.

    Input : desire 59 63 all few 46 zone
    Step I : 38 desire 59 63 all few 46 zone
    Step II : 38 zone desire 59 63 all few 46
    Step III : 38 zone 46 desire 59 63 all few
    Step IV : 38 zone 46 few desire 59 63 all
    Step III : 38 zone 46 few 59 desire all


  1. Input: save 21 43 78 them early 36 for
    Which of the following steps will be the last but one?











  1. 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.

    Input : save 21 43 78 them early 36 for
    Step I : 21 save 21 43 78 them early 36 for
    Step II : 21 them save 43 78 early 36 for
    Step III : 21 them 36 save 43 78 early for
    Step IV : 21 them 36 save 43 for 78 early
    Hence step III will be the last but one.



  1. Input : win 92 task 73 59 house range 34
    Which of the following will be step IV of the above input?











  1. 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.

    Input : win 92 task 73 59 house range 34

    Step I : 34 win 92 task 73 59 house range
    Step II : 34 win 59 92 task 73 house range
    Step III : 34 win 59 task 92 73 house range
    Step IV : 34 win 59 task 73 92 house range