HomeTestsSearchRankProfile
mediumMCQWBCS Prelims 20212026Reasoning Ability
1 mark

An algorithm rearranges a sequence of numbers following a specific rule in each step. Following is an illustration of input and the subsequent steps of rearrangement.
Input: 98 31 06 72 63 59 36 12 84
Step 1: 98 31 36 72 63 59 06 12 84
Step 2: 84 31 36 72 63 59 06 12 98
Step 3: 84 31 36 63 72 59 06 12 98
Step 4: 84 31 12 63 72 59 06 36 98

Using the same rules, find the configuration for the following input:
Input: 59 36 12 98 84 31 06 72 63
The sum of the numbers in position 3 and position 7 corresponding to step 4 is:

  1. A
    18
  2. B
    42
  3. C
    84
  4. D
    108

Solution & Step-by-step Explanation

By analyzing the illustration, the machine performs specific index swaps at each step:
* Step 1: Swap index 3 and index 7.
* Step 2: Swap index 1 and index 9.
* Step 3: Swap index 4 and index 5.
* Step 4: Swap index 3 and index 8.

Let us apply these exact positional swaps to the given input:



* Step 1 (Swap index 3 and 7):



* Step 2 (Swap index 1 and 9):



* Step 3 (Swap index 4 and 5):



* Step 4 (Swap index 3 and 8):



In Step 4:

* The number at position 3 is .
* The number at position 7 is .

Practice this question

Try it yourself before checking the explanation above.

An algorithm rearranges a sequence of numbers following a specific rule in each step. Following is an illustration of input and the subsequent steps of rearrangement.
Input: 98 31 06 72 63 59 36 12 84
Step 1: 98 31 36 72 63 59 06 12 84
Step 2: 84 31 36 72 63 59 06 12 98
Step 3: 84 31 36 63 72 59 06 12 98
Step 4: 84 31 12 63 72 59 06 36 98

Using the same rules, find the configuration for the following input:
Input: 59 36 12 98 84 31 06 72 63
The sum of the numbers in position 3 and position 7 corresponding to step 4 is:
A
18
B
42
C
84
D
108

Share This Question

Related Questions

Ready for a Full Test?

Practice with timed mock tests and track your performance across Reasoning Ability.

Discussion