ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
Given input string = "ABCDABCATRYCARCABCSRT" and pattern string = "CAT". Find the first index of the pattern match using Quick search algorithm.
Correct Answer: B — 6
Using Quick search algorithm, searching starts from the leftmost character and finds the first occurrence of the pattern "CAT" at index 6.