Discussion :: Sequential Output Training
-
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: now 41 28 for join 37 go 61Step I: 61 now 41 28 for join 37 goStep II: 61 for now 41 28 join 37 goStep III: 61 for 41 now 28 join 37 goStep IV: 61 for 41 go now 28 join 37Step V: 61 for 41 go 37 now 28 joinStep VI: 61 for 41 go 37 join now 28Step VII: 61 for 41 go 37 join 28 nowStep VIII: is the last step for this 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: chair wood 21 42 59 height bench 78. How many steps will be required to complete the rearrangement?
Answer : Option D
Explanation :
The logic is: the words get arranged in alphabetical order. Where as the numbers get arranged in descending order. Numbers occupy odd places in the final steps while words occupy even positions. When any element gets arranged, the previous element occupying that position shifts one place towards right.
Input: chair wood 21 42 59 height bench 78
Be The First To Comment