Directions for Questions: Study the following information carefully a...
In step I: largest number is moved to first position and alphabetically first word is moved to the last position
In step II: second largest number is moved to second position and alphabetically second word is move to last but one position These steps are continued till all the numbers are in descending order and all the words in reverse alphabetical order
Step I: 96 27 work 49 pays tree 42 in name 79 long run 18 25 57 hard
Step II: 96 79 27 work 49 pays tree 42 name long run 18 25 57 in hard
Step III: 96 79 57 27 work 49 pays tree 42 name run 18 25 long in hard
Step IV: 96 79 57 49 27 work pays tree 42 run 18 25 name long in hard
Step V: 96 79 57 49 42 27 work tree run 18 25 pays name long in hard
Step VI: 96 79 57 49 42 27 work tree 18 25 run plays name long in hard
Step VII: 96 79 57 49 42 27 25 work 18 tree run pays name long in hard
Step VIII: 96 79 57 49 42 27 25 18 work tree run pays name long in hard
Step III: 96 79 57 27 work 49 pays tree 42 name run 18 25 long in hard Hence, nine words/numbers
View all questions of this test
Directions for Questions: Study the following information carefully a...
Understanding the Input and Rearrangement Process
The input provided is:
27 hard work 49 pays 96 tree 42 in name 79 long run 18 25 57
The rearrangement process involves sorting the numbers in descending order followed by the words in their original order.
Step Breakdown
1. Initial Arrangement:
The input consists of both words and numbers. The machine first identifies the numbers and rearranges them in descending order.
2. Numbers and Words:
- Numbers: 27, 49, 96, 42, 79, 18, 25, 57
- Words: hard, work, pays, tree, in, name, long, run
3. Rearrangement Steps:
Each step will progressively place the largest number at the forefront, followed by the next largest, and eventually the words.
Counting Elements Between "work" and "in"
- In Step III, the arrangement will reflect:
- Largest numbers first: 96, 79, 57, followed by the words.
- The sequence in Step III:
- 96, 79, 57, hard, work, pays, tree, in, name, long, run, 42, 25, 18, 27
- Now, counting the elements between "work" and "in":
- Elements between: pays, tree (2 elements)
- Total elements from "work" to "in" (not including "work" and "in"):
- Total: 9 elements (hard, work, pays, tree, in, name, long, run)
Conclusion
The correct answer is indeed nine elements between "work" and "in" in Step III, confirming that option 'B' is accurate.