These questions are based on the following information.
A word and number arrangement machine when given an input line of words and numbers rearranges them by following a particular rule. The following is an illustration of an input and its rearrangement.
Input: men 27 pen 32 ten 56 hen 48
Step I: hen men 27 pen 32 ten 56 48
Step II: hen 56 men 27 pen 32 ten 48
Step III: hen 56 men 48 27 pen 32 ten
Step IV: hen 56 men 48 pen 27 32 ten
Step V: hen 56 men 48 pen 32 27 ten
Step VI: hen 56 men 48 pen 32 ten 27
Step VII: is the final output for the above input.
As per the rules followed in the above steps, find out appropriate steps for the given input and answer the following questions.
Which of the following is the second last step for the following input?
Input: 238 pish 392 pods 297 post 412 pech
Show answer & explanation
Correct answer: B
Explanation
Pattern Logic:
• Words and numbers are arranged alternately starting with a word.
• Words are arranged in alphabetical (dictionary) order: pech, pish, pods, post.
• Numbers are arranged in descending order: 412, 392, 297, 238.
• In each step, one element is shifted to its correct position from left to right.
Step-by-step rearrangement:
Input: 238 pish 392 pods 297 post 412 pech
Step I: pech 238 pish 392 pods 297 post 412
Step II: pech 412 238 pish 392 pods 297 post
Step III: pech 412 pish 238 392 pods 297 post
Step IV: pech 412 pish 392 238 pods 297 post
Step V: pech 412 pish 392 pods 238 297 post
Step VI: pech 412 pish 392 pods 297 238 post
Step VII: pech 412 pish 392 pods 297 post 238 (Final Step)
Since Step VII is the final (last) step, the second last step is Step VI:
pech 412 pish 392 pods 297 238 post
Therefore, the correct option is (B).