Question Set 2



Q3. Which of the following is false

A. Pattern na+b matches string nab
B. Pattern baaa+c matches string baasc
C. Pattern foo+t matches string foooooot
D. Pattern go+gle matches string google


Q4. Which of the following is NOT true

A. Pattern na?b matches string nab
B. Pattern baaa?c matches baasc
C. Pattern foo?t matches string foooooot
D. Pattern goo?gle matches string goggle


Q5. Which of the following is false

A. Pattern na*b matches string nab
B. Pattern baaa*c matches string basc
C. Pattern foo*t matches string foooooot
D. Pattern goo*gle matches string goggle


Q6. Which of the following strings do not match the pattern go{1,3}gle

A. goggle
B. google
C. gooogle
D. goooogle


Q7. Which of the following strings match the pattern go{1}gle

A. gogle
B. google
C. gooogle
D. goooogle


Q8. Which of the following strings do not match the pattern go{2,}gle

A. goggle
B. google
C. gooogle
D. goooogle