exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 1 question 39 discussion

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

You are adding a public method named UpdateGrade to a public class named ReportCard.
The code region that updates the grade field must meet the following requirements:
✑ It must be accessed by only one thread at a time.
✑ It must not be vulnerable to a deadlock situation.
You need to implement the UpdateGrade() method.
What should you do?

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

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
Ofer
Highly Voted 5 years, 4 months ago
only A. because you may want that other parts of the method to be available to some other thread.
upvoted 10 times
...
dakuan
Most Recent 5 years, 8 months ago
A and D. D is secure method.
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 ...