exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 67 discussion

Actual exam question from Microsoft's 70-483
Question #: 67
Topic #: 2
[All 70-483 Questions]

You write the following method (line numbers are included for reference only):

You need to ensure that the method extracts a list of URLs that match the following pattern:
@http://(www\.)?([^\.]+)\.com;
Which code should you insert at line 07?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
✑ MatchCollection
Represents the set of successful matches found by iteratively applying a regular expression pattern to the input string.
The collection is immutable (read-only) and has no public constructor. The Regex.Matches method returns a MatchCollection object.
✑ List<T>.Add Method
Adds an object to the end of the List<T>.

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
Mitsoshima
Highly Voted 6 years ago
Correct answer should be: C In currentMatch.Groups.ToString() of answer A 'Groups' is a collection, so calling the toString()-Method of a collection doesn't provide the list ements as string, but the string representation of the collection object itself.
upvoted 47 times
...
dosper
Highly Voted 5 years, 10 months ago
C is the answer.
upvoted 18 times
...
DaGrooveNL
Most Recent 4 years, 5 months ago
FINAL ANSWER: C.
upvoted 1 times
...
noussa
4 years, 5 months ago
It must be C
upvoted 1 times
...
Misio
4 years, 9 months ago
It's totally C
upvoted 3 times
...
Sujay
5 years, 1 month ago
C is absolutly 200% correct answer
upvoted 7 times
...
Gods_Kenny
5 years, 7 months ago
C is the answer
upvoted 11 times
...
dakuan
5 years, 7 months ago
C is correct
upvoted 11 times
...
user123
5 years, 10 months ago
answer is C
upvoted 13 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 ...