Question: Question 1 (1 point) Which regular expression will match a US 9-digit phone number? For example: 312-338-1234, (773) 764-3456, or 8779986789? Question 1 options: (?[0-9]{3})?
Question 1 (1 point)
Which regular expression will match a US 9-digit phone number? For example: 312-338-1234, (773) 764-3456, or 8779986789?
Question 1 options:
|
| \(?[0-9]{3}\)? [0-9]{3}-[0-9]{4} |
|
| \d{3}-\d{3}-\d{4} |
|
| [0-9-]{10,12} |
|
| All the above |
Question 2 (1 point)
Which of the following does the scanner emit tokens:
Question 2 options:
|
| Numerics |
|
| Comments |
|
| Operators |
|
| Keywords |
|
| Identifiers |
|
| Whitespace |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
