exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 1 question 43 discussion

Actual exam question from Microsoft's 70-487
Question #: 43
Topic #: 1
[All 70-487 Questions]

You have the following code.

File.xml contains the following XML markup.

You need to write code to display Item1 in the console output.
Which five code blocks should you use? Develop the solution by selecting and arranging the required code blocks in the correct order.
NOTE: You will need all of the code blocks.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:

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
xjeroen
Highly Voted 5 years, 2 months ago
Answer is correct, since xmlString contains the path and not the XML itself. See: https://docs.microsoft.com/en-us/dotnet/api/system.xml.xmlreader.create?view=netframework-4.8
upvoted 7 times
...
jan_oratowski
Most Recent 4 years, 4 months ago
Also, StringReader reads from a string, not from the file, so it can't be correct here.
upvoted 1 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