Q18
A pattern formed by two characters and is repeated more than once in the following string :
What is in the 7th and 8th positions from the left in the above string?
- (a) aa
- (b) ab
- (c) ba
- (d) bb
A pattern formed by two characters and is repeated more than once in the following string :
What is in the 7th and 8th positions from the left in the above string?
Answer: (d) bb
abbab repeated three times (abbab + abbab + abbab) matches every given position: 2nd (b), 4th (a), 6th (a), 9th (a), 11th (a), and 13th to 15th (bab).abbababbababbab, the 7th character is the 2nd letter of the second block (b) and the 8th character is the 3rd letter of the second block (b), giving bb.