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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!