A word arrangement machine takes an input line of words and rearranges them step by step following a particular rule until a final arrangement is reached. For the input “gone are take enough brought station”, the steps are: Step 1: take gone are enough brought station; Step 2: take are gone enough brought station; Step 3: take are station gone enough brought; Step 4: take are station brought gone enough, and Step 4 is the last step. Using the same rearrangement rule, consider the input “car on star quick demand fat”. What will be the third step for this input?
Aptitude
Sequential Output Tracing
Difficulty: Medium
Choose an option
Answer
Correct Answer: none of these
Explanation
Introduction / Context: This is an input–output style question where a word arrangement machine rearranges words in a line based on a fixed rule. You must understand the rule from one fully worked example and then apply it to a new input to find the required intermediate step. Here, we are asked to determine the third step for a different set of words. Given Data / Assumptions:
- Example input: gone are take enough brought station.
- Steps:
- Step 1: take gone are enough brought station
- Step 2: take are gone enough brought station
- Step 3: take are station gone enough brought
- Step 4: take are station brought gone enough (final)
- New input: car on star quick demand fat.
- We must find the third step produced by the same rule.
- The machine alternately places the lexicographically largest and smallest remaining words in the next position from the left.
- At Step 1, it moves the lexicographically greatest word to the first position.
- At Step 2, it moves the lexicographically smallest remaining word to the second position.
- At Step 3, it moves the greatest of the remaining words to the third position, and so on.