exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 1 question 64 discussion

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

DRAG DROP -
You are developing an application that will include a method named GetData. The GetData() method will retrieve several lines of data from a web service by using a System.IO.StreamReader object.
You have the following requirements:
✑ The GetData() method must return a string value that contains the entire response from the web service.
✑ The application must remain responsive while the GetData() method runs.
You need to implement the GetData() method.
How should you complete the relevant code? (To answer, drag the appropriate objects to the correct locations in the answer area. Each object may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
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
Bio
Highly Voted 5 years, 12 months ago
"that contains the entire response" Not just the first Line So it is ReadToEndAsync()
upvoted 53 times
...
StudiousMCSD
Highly Voted 5 years, 7 months ago
Correct answer: async await ReadToEndAsync()
upvoted 23 times
...
noussa
Most Recent 4 years, 5 months ago
The correct answer is : Async Await ReadToEndAsync()
upvoted 3 times
...
FinderZ
4 years, 5 months ago
Answer: async > await > ReadToEndAsync() The 'await' in the picture is showing by mistake. https://docs.microsoft.com/en-us/dotnet/api/system.io.streamreader.readtoendasync?view=net-5.0
upvoted 3 times
...
KT1978
5 years ago
Why is there an await > await on the same line
upvoted 4 times
...
mmarinov
5 years, 1 month ago
async await ReadToEndAsync() ReadLineAsync() if the task was to read only the first line from the response.
upvoted 6 times
...
TonyBezerra
5 years, 3 months ago
Async Await ReadToEndAsync()
upvoted 8 times
...
Mitsoshima
6 years ago
The correct objects are in order: async await ReadLineAsync() I think, the 'await' written behind the second location in the answer area is a mistake and already part of the solution.
upvoted 4 times
noussa
4 years, 5 months ago
nope Correct answer: async await ReadToEndAsync()
upvoted 4 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 ...