Consider following string: AACBABCBAA, and pattern to be matched: ABCB. By how many positions will the first shift be performed considering the bad character rule?
a. Pattern will be shifted by one position
b. Pattern will be shifted by two positions
c. Pattern will be shifted by three positions
d. Pattern will be shifted by five positions
a. Pattern will be shifted by one position
The mismatch will be found at the 1st letter (counting from 0). In text, we have the letter “A”; in pattern, we have “B”. We shift by one position because after that, “A” from the pattern matches “A” from the text.
You might also like to view...
Behaviors that run on the Web server before the Web page is sent to a user's browser are called ____.
A. recordsets B. detail behaviors C. server behaviors D. Web behaviors
The layer functioning as the clipping mask is referred to as the ____.
A. mask layer B. clipped base C. base layer D. clipping layer
The closer the pixels on a screen, the crisper the image.
a. true b. false
A good _____ is useful to decide when to use numerals or words to represent numbers in a sentence.
A. presentation B. stylebook C. advertisement D. catalog