Input Output
Direction: 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 rearrange them following a particular rule in each step. The following is an illustration of input of input and rearrangement.
Input : base 35 or gone 62 49 87 ahead
Step I : 87 base 35 or gone 62 49 ahead
Step II : 87 ahead base 35 or gone 62 49
Step III : 87 ahead 62 base 35 or gone 49
Step IV : 87 ahead 62 base 49 35 or gone
Step V : 87 ahead 62 base 49 gone 35 or
and Step V is the last step of the rearrangement.
As per the rule followed in the above steps, find out in each of the following questions the appropriate step for the given input.
- Input : 14 35 When they came 61 48 home
How many steps will be required to complete the rearrangement?
-
View Hint View Answer Discuss in Forum
In the first step, the largest number comes to the first position and the remaining line shift rightward. In the next step the word that comes first in the alphabetical order goes on to occupy the second position pushing the rest of the shift rightward. This goes alternately till all the number are arranged in a descending order and all the words in alphabetical at alternate positions.
Correct Option: C
In the first step, the largest number comes to the first position and the remaining line shift rightward. In the next step the word that comes first in the alphabetical order goes on to occupy the second position pushing the rest of the shift rightward. This goes alternately till all the number are arranged in a descending order and all the words in alphabetical at alternate positions.
Input : 14 35 when they came 61 48 home
Step I : 61 14 35 when they came 48 home
Step II : 61 came 14 35 when they 48 home
Step III : 61 came 48 14 35 when they home
Step IV : 61 came 48 home 14 35 when they
Step V : 61 came 48 home 35 14 when they
Step VI : 61 came 48 home 35 they 14 when
Direction: 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 rearrange them following a particular rule in each step. The following is an illustration of input and rearrangement.
Input : but 32 71 glory fair south 65 84
Step I : south but 32 71 glory fair 65 84
Step II : south 84 but 32 71 glory fair 65
Step III : south 84 glory but 32 71 fair 65
Step IV : south 84 glory 71 but 32 fair 65
Step V : south 84 glory 71 fair but 32 65
Step VI : south 84 glory 71 fair 65 but 32 and
Step VI is the last step of the rearrangement. As per the rule followed in the above steps, find out in each of the following questions the appropriate step for the given input.
- Input: any how 49 24 far wide 34 69
Which of the following steps will be the last but one?
-
View Hint View Answer Discuss in Forum
In the first step, the word that comes first in the alphabetical order comes to the first and the rest of the shift rightward. In the next step largest number occupies the next place and the rest of the shift rightward. This goes on alternately till the words get arranged in the reverse alphabetical order and number in a descending order.
Correct Option: C
In the first step, the word that comes first in the alphabetical order comes to the first and the rest of the shift rightward. In the next step largest number occupies the next place and the rest of the shift rightward. This goes on alternately till the words get arranged in the reverse alphabetical order and number in a descending order.
As per given question,
Input : any how 49 24 far wide 34 69
Step I: wide any how 49 24 far 34 69
Step II: wide 69 any how 49 24 far 34
Step III: wide 69 any how 49 24 far 34
Step IV: wide 69 any 49 how 24 far 34
Step V: wide 69 how 49 far 24 any 34
Step VI: wide 69 how 49 far 34 any 24
Step V be 2nd last step.
- Step III of an input is: years 92 ultra 15 23 strive house 39
How many more step will be required to complete the rearrangement ?
-
View Hint View Answer Discuss in Forum
In the first step, the word that comes first in the alphabetical order comes to the first and the rest of the shift rightward. In the next step largest number occupies the next place and the rest of the shift rightward. This goes on alternately till the words get arranged in the reverse alphabetical order and number in a descending order.
Correct Option: B
In the first step, the word that comes first in the alphabetical order comes to the first and the rest of the shift rightward. In the next step largest number occupies the next place and the rest of the shift rightward. This goes on alternately till the words get arranged in the reverse alphabetical order and number in a descending order.
Step III: years 92 ultra 15 23 strive house 39
Step IV: years 92 ultra 39 15 23 strive house
Step V: years 92 ultra 39 strive 15 23 house
Step VI: years 92 ultra 39 strive 23 15 house
Step VII: years 92 ultra 39 strive 23 house 15
Hence 7 – 3 = 4 more steps will be required.
- Step II of an input is: town 74 pair 15 31 nice job 42
Which of the following is definitely the input?
-
View Hint View Answer Discuss in Forum
In the first step, the word that comes first in the alphabetical order comes to the first and the rest of the shift rightward. In the next step largest number occupies the next place and the rest of the shift rightward. This goes on alternately till the words get arranged in the reverse alphabetical order and number in a descending order.
Correct Option: D
In the first step, the word that comes first in the alphabetical order comes to the first and the rest of the shift rightward. In the next step largest number occupies the next place and the rest of the shift rightward. This goes on alternately till the words get arranged in the reverse alphabetical order and number in a descending order.
we can't proceed backward so cannot be determined
Direction: 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 rearrange them following a particular rule in each step. The following is an illustration of input of input and rearrangement.
Input : base 35 or gone 62 49 87 ahead
Step I : 87 base 35 or gone 62 49 ahead
Step II : 87 ahead base 35 or gone 62 49
Step III : 87 ahead 62 base 35 or gone 49
Step IV : 87 ahead 62 base 49 35 or gone
Step V : 87 ahead 62 base 49 gone 35 or
and Step V is the last step of the rearrangement.
As per the rule followed in the above steps, find out in each of the following questions the appropriate step for the given input.
- Step II of an input is: 75 down 16 24 farm eager 62 sky
How many more steps will be required to complete the rearrangement?
-
View Hint View Answer Discuss in Forum
In the first step, the largest number comes to the first position and the remaining line shift rightward. In the next step the word that comes first in the alphabetical order goes on to occupy the second position pushing the rest of the shift rightward. This goes alternately till all the number are arranged in a descending order and all the words in alphabetical at alternate positions.
Correct Option: A
In the first step, the largest number comes to the first position and the remaining line shift rightward. In the next step the word that comes first in the alphabetical order goes on to occupy the second position pushing the rest of the shift rightward. This goes alternately till all the number are arranged in a descending order and all the words in alphabetical at alternate positions.
Step II : 75 down 16 24 farm eager 62 sky
Step III : 75 down 62 16 24 farm eager sky
Step IV : 75 down 62 eager 16 24 farm sky
Step V : 75 down 62 eager 24 16 farm sky
Step VI : 75 down 62 eager 24 farm 16 sky
Hence 6 - 2 = 4 more steps will be required.