ITPEC IP October 2021 Question 29
ITPEC IP October 2021 — Question 29 of 100
Only string I, A.text, matches the wildcard expression. The expression requires an A somewhere, followed later by the literal sequence period, t, e, and then exactly two characters. In A.text, those final two characters are x and t.
Answer (a)
Why not others:
- AA.tex has only one character after the final t-e sequence
- B.Atex has no period after its A
- BA.Btext has a period after A, but B appears between that period and the required t-e sequence
Key rule: A question-mark wildcard matches exactly one character, while an asterisk wildcard can match any sequence, including an empty one.
AI-generated — may contain errors
The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.
This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official IP past-paper collection or Report an issue.