Question

    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 rearranges them following a particular rule in each step. The following is an illustration of input and rearrangement. Input: 22 mother 85 63 or dear 32 combine 43 10 super never Step I: 10 mother 85 63 or dear 32 combine 43 super never 22 Step II: 32 10 mother 85 63 or dear combine super never 22 43 Step III: 63 32 10 mother or dear combine super never 22 43 85 Step IV: combine 63 32 10 mother or super never 22 43 85 dear Step V: mother combine 63 32 10 or super 22 43 85 dear never Step VI: or mother combine 63 32 10 22 43 85 dear never super And step VI is the last step of the above input. As per the rules followed in the above steps, find out in each of the following questions, the appropriate step for the given input. INPUT : “course 65 10 race 85 in 20 heal today 52 91 done”

    How many steps are required to complete the rearrangement of the given input?

    A five Correct Answer Incorrect Answer
    B six Correct Answer Incorrect Answer
    C eight Correct Answer Incorrect Answer
    D seven Correct Answer Incorrect Answer
    E None of these Correct Answer Incorrect Answer

    Solution

    INPUT : course 65 10 race 85 in 20 heal today 52 91 done Step I: 10 course 65 race 85 in heal today 52 91 done 20 Step II: 52 10 course race 85 in heal today 91 done 20 65 Step III: 85 52 10 course race in heal today done 20 65 91 Step IV: course 85 52 10 race in heal today 20 65 91 done Step V: heal course 85 52 10 race today 20 65 91 done in Step VI: race heal course 85 52 10 20 65 91 done in today How words are arranged in the final step: Arrangement starts from the middle of the arrangement. First the smallest number and then second smallest number on the right of the smallest number. Then, third smallest number is on the immediate left of the first number and fourth smallest number on the immediate right of the second smallest number and so on. After all the numbers get arranged then, the first word(alphabetically) is to the left of the first arranged number and then second word is to immediate right of the last arranged number. Then, the third word is to the left of the first arranged word and fourth word to the immediate right of the second arranged word so on. What machine is doing in each step: The machine first rearranges numbers and then words. In the first step smallest number is getting arranged from the left side and the second smallest number is getting arranged from the right side. In each of the further step same procedure is followed as in the previous step and number and words arranged in the previous step are shifting one place to their left and right respectively.

    Practice Next