exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 156 discussion

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

You are developing an application that uses multiple asynchronous tasks to optimize performance.
You need to retrieve the result of an asynchronous task.
Which code segment should you use?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
sscooter1010
Highly Voted 5 years, 4 months ago
Option D cannot be viewed
upvoted 5 times
...
Bintang0
Highly Voted 4 years, 8 months ago
C Seems right. A Task must have the async keyword. And you must await the result of the Task, therefore its parent method should be marked async.
upvoted 5 times
...
noussa
Most Recent 4 years, 5 months ago
See full question: https://www.briefmenow.org/microsoft/which-code-segment-should-you-use-1082/
upvoted 1 times
...
futre
4 years, 5 months ago
C is cool.
upvoted 3 times
...
HgstExam
4 years, 9 months ago
Option A is correct, does not use redundant async/await making it perform faster.
upvoted 2 times
Damage_San
4 years, 9 months ago
That is dependent on the code, task.fromresult is useful when you don't have to compute the result
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 ...