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 : ‘service 46 58 96 of there desk 15’ Which of the following will be step VI? |
|||||||||||||||||
(a) |
Desk 15 over service 46 58 96 there |
(b) |
Desk 15 over 46 service there 58 96 |
||||||||||||||
(c) |
Desk over 46 service 58 there 96 |
(d) |
There will be no such step |
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 : ‘service 46 58 96 of there desk 15’ Which of the following will be step VI? |
|||||||||||||||||
(a) |
Desk 15 over service 46 58 96 there |
(b) |
Desk 15 over 46 service there 58 96 |
||||||||||||||
(c) |
Desk over 46 service 58 there 96 |
(d) |
There will be no such step |
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 above rules, last step = step V
So, there will be no step VI.