UPSC Prelims 2026 CSAT Q18 · Reasoning
A pattern formed by two characters a and b is repeated more than once in the following string: × b × a × a × × a × bab. What is × × in the 7th and 8th positions from the left in the above string?
- aaa
- bab
- cba
- dbb
Show answer & explanationHide answer
The only consistent repeating block is 'bbaaba', so the full string is bbaaba bbaaba b, and positions 7 and 8 are b and b.
Statement-by-statement analysis
- With a 6-letter block, position 7 repeats position 1 and position 13 (7 = 1 + 6 = 13 − 6).
- Position 13 is a visible 'b', so position 7 must be b, not a.
- aa fails at the very first letter.
- Option (b) also puts 'a' at position 7.
- This contradicts the visible 'b' at position 13, which is the same place in the next block.
- ab would only fit a block length of 2, and length 2 is impossible: position 2 is b but position 4 is a.
- Position 8 repeats position 2 (8 − 6 = 2).
- Position 2 is a visible 'b', so position 8 must be b, not a.
- ba gets position 7 right but fails at position 8.
- The 6-letter block is filled as follows: pos 1 = 7 = 13 = b, pos 2 = 8 = b, pos 3 = 9 = a, pos 4 = 10 = a, pos 5 = 11 = b, pos 6 = 12 = a.
- The block is bbaaba, and the full string is b b a a b a b b a a b a b, which matches every visible letter.
- Positions 7 and 8 are b and b.
Concept to know
- Number every character, blanks included: × b × a × a × × a × b a b gives 13 positions, with 7 and 8 blank.
- If a block of length k repeats, then position n and position n + k must hold the same letter. Test k = 2, 3, 4 and so on until no visible letters clash.
- k = 2 fails because pos 2 is b and pos 4 is a. k = 3 fails because pos 4 is a and pos 13 is b. k = 4 fails because pos 9 is a and pos 13 is b. k = 5 fails because pos 6 is a and pos 11 is b.
- k = 6 has no clash: pos 6 and pos 12 are both a, and pos 13 (b) sets pos 1 and pos 7 to b. The block is bbaaba.
- Fill the blanks from the matching positions in other blocks: pos 7 copies pos 13 (b) and pos 8 copies pos 2 (b).
- Always rewrite the whole string at the end to confirm that every given letter fits.
Related facts for revision
- Letter-series questions often ask you to fill all blanks and pick the full sequence. The same block-length test applies.
- Shortcut: a complete block at one end, such as 'bab' here, gives an anchor. Copy known letters k places backward or forward.
- Variations include patterns of three letters (a, b, c), or patterns like 'abc_ab_' where the block grows in each repetition. Check for a growing block if no fixed length works.
- Number series with missing terms that repeat use the same idea: find the cycle length, then use position mod k.
- When the options give only the asked positions, test each option against one forced position. This removes options quickly.
Pattern recognition in a letter series: finding the length of the repeating block and filling blanks by position.
Trap: Many pick (b) 'ab' by assuming a simple alternating abab pattern from the ending 'bab'. That fails at once because positions 2 and 4 (b and a) clash. To save time, test block lengths quickly: k = 6 is the first with no clash. Then just read off pos 7 = pos 13 and pos 8 = pos 2.
More Reasoning PYQs
Answer from the official UPSC answer key. Explanation by the EdiShorts editorial team.