A pattern formed by two characters $a$ and $b$ is repeated more than once in the following string :
$x , b , x , a , x , a , x , x , a , x , a , x , b , a , b$
What is $x , x$ in the 7th and 8th positions from the left in the above string?
Detailed Explanation:
The string has 15 positions. A pattern repeated more than once with length 5 fits perfectly (repeated 3 times).
The last 5 known characters are: a, x, b, a, b. Testing this as the repeating pattern and solving for x values: the pattern must be a, b, b, a, b.
Repeating a, b, b, a, b three times gives: a, b, b, a, b, a, b, b, a, b, a, b, b, a, b. Positions 7 and 8 are both b.
Therefore, x, x at positions 7 and 8 is bb, making Option 4 the correct answer.
Question 1 of 2 Ranking & Ordering
Practice PYQ questions from this topic across all years
First question in this topic
P, Q, R, S and T are ranked 1 to 5 (not necessarily in that order). The rank of P is...