exam questions

Exam 300-820 All Questions

View all questions & answers for the 300-820 exam

Exam 300-820 topic 1 question 12 discussion

Actual exam question from Cisco's 300-820
Question #: 12
Topic #: 1
[All 300-820 Questions]


Refer to the exhibit. Which two numbers match the regular expression? (Choose two.)

  • A. d20d16d20d22
  • B. 2091652010224
  • C. 209165200225
  • D. d209d165d200d224
  • E. 209165200224
Show Suggested Answer Hide Answer
Suggested Answer: CE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
iamnoone
2 months ago
Selected Answer: CE
\d: This is a special sequence in regex that matches any digit (equivalent to [0-9]). {3}: This is a quantifier that specifies exactly how many times the preceding element should be repeated. In this case, it means that exactly three digits should be matched. (\d{3}): The parentheses around \d{3} create a capture group. This means that the matched sequence of three digits is stored as a group, which can be referenced later in the regex or in the code that uses the regex. So, the entire regex (\d{3})(\d{3})(\d{3})(\d{3}) matches a string that consists of four groups of exactly three digits each. C&E contain 4 groups of 3 digits.
upvoted 1 times
...
Collabinski
9 months, 2 weeks ago
Selected Answer: CE
The third use of backslash is for specifying generic character types. The following are always recognized: \d any decimal digit \D any character that is not a decimal digit \s any whitespace character \S any character that is not a whitespace character \w any "word" character \W any "non-word" character \d{8} matches exactly 8 digits. An opening curly bracket that appears in a position where a quantifier is not allowed, or one that does not match the syntax of a quantifier, is taken as a literal character.
upvoted 1 times
...
JamieF66
2 years ago
CE are correct
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago