exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 1 question 60 discussion

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

You are developing an application by using C#.
The application includes an object that performs a long running process.
You need to ensure that the garbage collector does not release the object's resources until the process completes.
Which garbage collector method should you use?

  • A. WaitForFullGCComplete()
  • B. SuppressFinalize()
  • C. collect()
  • D. RemoveMemoryPressure()
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
noussa
4 years, 5 months ago
KeepAlive() or SuppressFinalize() both are correct. It depends on what u have within the list of choices
upvoted 1 times
...
DarkApprentice
4 years, 7 months ago
SuppressFinalize() only makes sense to me. It is used to prevent a garbage collection from being called.
upvoted 3 times
...
Bob483
4 years, 7 months ago
I would say: KeepAlive() See question #43
upvoted 2 times
...
Ryan1234
4 years, 11 months ago
COnfusing i thought the answer should be stayalive() inorder to not release the object resources
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 ...