Input Output

    Question

    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.

    Input: regret 68 purse year 21 16 building 11 meant 59 44 century

    Step I: 69 regret purse 21 16 building 11 meant 59 44 century year

    Step II: 69 57 regret purse 21 16 building 11 44 century meant year

    Step III: 69 57 45 regret 21 16 building 11 century purse meant year

    Step IV: 69 57 45 19 16 building 11 century regret purse meant year

    Step V: 69 57 45 19 17 11 building century regret purse meant year

    Step VI: 69 57 45 19 17 9 building century regret purse meant year

    And step VI is the last step of the above input. As per the rules followed in the above step, find out the appropriate step for the given output.

    Input: rest 58 7 towel perfection 90 35 bath hampers 26 breath 48

    Which element is exactly between the third element from left end and fourth element from right end in step IV?

    A rest Correct Answer Incorrect Answer
    B 26 Correct Answer Incorrect Answer
    C Perfection Correct Answer Incorrect Answer
    D 35 Correct Answer Incorrect Answer
    E None of these Correct Answer Incorrect Answer

    Solution

    For words – One word will be arranged in one step. The word which has least number of total letters is arranged first from right end. The words are arranged form right to left end. If any two words have same number of letters, then they are arranged according to the alphabetical series (according to first letter). For number – The numbers are arranged in decreasing order, but if the number is even add 1 in that number and number is odd subtract 2 in the number. The number are arranged form left to right end. Input: rest 58 7 towel perfection 90 35 bath hampers 26 breath 48 Step I: 91 rest 58 7 towel perfection 35 hampers 26 breath 48 bath Step II: 91 59 7 towel perfection 35 hampers 26 breath 48 rest bath Step III: 91 59 49 7 perfection 35 hampers 26 breath towel rest bath Step IV: 91 59 49 33 7 perfection 26 hampers breath towel rest bath Step V: 91 59 49 33 27 7 perfection hampers breath towel rest bath Step VI: 91 59 49 33 27 5 perfection hampers breath towel rest bath

    Question

    Which step number would be the following output?

    91 59 49 33 7 perfection 26 hampers breath towel rest bath

    A Step III Correct Answer Incorrect Answer
    B Step IV Correct Answer Incorrect Answer
    C Step I Correct Answer Incorrect Answer
    D Step II Correct Answer Incorrect Answer
    E None of the above Correct Answer Incorrect Answer

    Solution

    For words – One word will be arranged in one step. The word which has least number of total letters is arranged first from right end. The words are arranged form right to left end. If any two words have same number of letters, then they are arranged according to the alphabetical series (according to first letter). For number – The numbers are arranged in decreasing order, but if the number is even add 1 in that number and number is odd subtract 2 in the number. The number are arranged form left to right end. Input: rest 58 7 towel perfection 90 35 bath hampers 26 breath 48 Step I: 91 rest 58 7 towel perfection 35 hampers 26 breath 48 bath Step II: 91 59 7 towel perfection 35 hampers 26 breath 48 rest bath Step III: 91 59 49 7 perfection 35 hampers 26 breath towel rest bath Step IV: 91 59 49 33 7 perfection 26 hampers breath towel rest bath Step V: 91 59 49 33 27 7 perfection hampers breath towel rest bath Step VI: 91 59 49 33 27 5 perfection hampers breath towel rest bath

    Question

    What is the position of ‘26’ in the step II?

    A Seventh from the left end Correct Answer Incorrect Answer
    B Fifth from the right end Correct Answer Incorrect Answer
    C Third from the right end Correct Answer Incorrect Answer
    D Fourth from the left end Correct Answer Incorrect Answer
    E None of these Correct Answer Incorrect Answer

    Solution

    For words – One word will be arranged in one step. The word which has least number of total letters is arranged first from right end. The words are arranged form right to left end. If any two words have same number of letters, then they are arranged according to the alphabetical series (according to first letter). For number – The numbers are arranged in decreasing order, but if the number is even add 1 in that number and number is odd subtract 2 in the number. The number are arranged form left to right end. Input: rest 58 7 towel perfection 90 35 bath hampers 26 breath 48 Step I: 91 rest 58 7 towel perfection 35 hampers 26 breath 48 bath Step II: 91 59 7 towel perfection 35 hampers 26 breath 48 rest bath Step III: 91 59 49 7 perfection 35 hampers 26 breath towel rest bath Step IV: 91 59 49 33 7 perfection 26 hampers breath towel rest bath Step V: 91 59 49 33 27 7 perfection hampers breath towel rest bath Step VI: 91 59 49 33 27 5 perfection hampers breath towel rest bath

    Question

    In step III, what is the sum of 3rd element and 8th element from left end?

    A 72 Correct Answer Incorrect Answer
    B 78 Correct Answer Incorrect Answer
    C 70 Correct Answer Incorrect Answer
    D 79 Correct Answer Incorrect Answer
    E 75 Correct Answer Incorrect Answer

    Solution

    For words – One word will be arranged in one step. The word which has least number of total letters is arranged first from right end. The words are arranged form right to left end. If any two words have same number of letters, then they are arranged according to the alphabetical series (according to first letter). For number – The numbers are arranged in decreasing order, but if the number is even add 1 in that number and number is odd subtract 2 in the number. The number are arranged form left to right end. Input: rest 58 7 towel perfection 90 35 bath hampers 26 breath 48 Step I: 91 rest 58 7 towel perfection 35 hampers 26 breath 48 bath Step II: 91 59 7 towel perfection 35 hampers 26 breath 48 rest bath Step III: 91 59 49 7 perfection 35 hampers 26 breath towel rest bath Step IV: 91 59 49 33 7 perfection 26 hampers breath towel rest bath Step V: 91 59 49 33 27 7 perfection hampers breath towel rest bath Step VI: 91 59 49 33 27 5 perfection hampers breath towel rest bath

    Question

    Which of the following element would be at the fifth position from the left end in step V?

    A 27 Correct Answer Incorrect Answer
    B bath Correct Answer Incorrect Answer
    C breath Correct Answer Incorrect Answer
    D 5 Correct Answer Incorrect Answer
    E hampers Correct Answer Incorrect Answer

    Solution

    For words – One word will be arranged in one step. The word which has least number of total letters is arranged first from right end. The words are arranged form right to left end. If any two words have same number of letters, then they are arranged according to the alphabetical series (according to first letter). For number – The numbers are arranged in decreasing order, but if the number is even add 1 in that number and number is odd subtract 2 in the number. The number are arranged form left to right end. Input: rest 58 7 towel perfection 90 35 bath hampers 26 breath 48 Step I: 91 rest 58 7 towel perfection 35 hampers 26 breath 48 bath Step II: 91 59 7 towel perfection 35 hampers 26 breath 48 rest bath Step III: 91 59 49 7 perfection 35 hampers 26 breath towel rest bath Step IV: 91 59 49 33 7 perfection 26 hampers breath towel rest bath Step V: 91 59 49 33 27 7 perfection hampers breath towel rest bath Step VI: 91 59 49 33 27 5 perfection hampers breath towel rest bath