exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 155 discussion

Actual exam question from Microsoft's 70-483
Question #: 155
Topic #: 2
[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 populate the urlText text box with a string value that contains the first line of the response from the web service.
The application must remain responsive while the GetData() method runs.
You need to implement the GetData() method.
You have the following code:

Which objects should you include in Target 1, Target 2 and Target 3 to complete the 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
supersunny
Highly Voted 5 years, 9 months ago
async, await, ReadLineAsync
upvoted 20 times
...
compJeri
Most Recent 4 years, 8 months ago
Should it be async, await, then ReadToEndAsync?
upvoted 1 times
compJeri
4 years, 8 months ago
My bad! It's async, await, then ReadLineAsync
upvoted 6 times
...
JuanraDiaz
4 years, 5 months ago
async, await, ReadLineAsync ReadToEndAsync not because the text says "that contains the first line of the response from the web service."
upvoted 3 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