Which of the following statements about regular expressions is false?
a. The quantifier {n,} in a regular expression matches at least n occurrences of the preceding pattern.
b. The quantifier {n,m} in a regular expression matches between n and m (inclusive) occurrences of the preceding
pattern.
c. The question mark (?) quantifier matches one occurrence of the pattern that it quantifies.
d. A set of braces containing one number, {n}, matches exactly n occurrences of the pattern it quantifies.
c. The question mark (?) quantifier matches one occurrence of the pattern that it quantifies.
You might also like to view...
Discuss the trade-offs between a manual challenge response system (one to which the user computes the response by hand or mentally) and a system that uses a special device, like a calculator.
What will be an ideal response?
Answer the following statements true (T) or false (F)
1) Comments cause the computer to print the text after the // on the screen when the program is executed. 2) The escape sequence \n, when output with cout and the stream insertion operator, causes the cursor to position to the beginning of the next line on the screen. 3) All variables must be declared before they’re used. 4) All variables must be given a type when they’re declared. 5) C++ considers the variables number and NuMbEr to be identical.