Read the information carefully and answer the question below. A word and a number rearrangement machine when an input line of words and numbers, rearranges them following a particular rule in every step. The following is an illustration of input and the steps of rearrangement
The step VI is last step. As per the pattern followed in the above steps. Find the appropriate step for the given input. Input : ‘train 59 47 25 over burden 63 sky’ Which of the following will be the last but one? |
|||||||||||||||||
(a) |
VI |
(b) |
V |
||||||||||||||
(c) |
IV |
(d) |
VII |
Read the information carefully and answer the question below. A word and a number rearrangement machine when an input line of words and numbers, rearranges them following a particular rule in every step. The following is an illustration of input and the steps of rearrangement
The step VI is last step. As per the pattern followed in the above steps. Find the appropriate step for the given input. Input : ‘train 59 47 25 over burden 63 sky’ Which of the following will be the last but one? |
|||||||||||||||||
(a) |
VI |
(b) |
V |
||||||||||||||
(c) |
IV |
(d) |
VII |
The given problem is based on arrangement in which words of the input get arranged in alphabetical order from left to right.
Step I - the word that comes first in alphabetical order comes to the leftmost position pushing the rest of the line rightward
Step II - the smallest number comes to the second position from leftmost position pushing the rest of the line rightward
Thus, the words and numbers get arranged alternately until the former make an alphabetical order and the latter an ascending order
By applying the above rules for given input, as last step = step VI, therefore last but one step = step V.