Which of the following is TRUE with regards to the WaitForFullGCApproach method?

You work as a senior developer at ABC.com. The ABC.com network consists of a single domain
named ABC.com.
You are running a training exercise for junior developers. You are currently discussing the
WaitForFullGCApproach method.
Which of the following is TRUE with regards to the WaitForFullGCApproach method?

You work as a senior developer at ABC.com. The ABC.com network consists of a single domain
named ABC.com.
You are running a training exercise for junior developers. You are currently discussing the
WaitForFullGCApproach method.
Which of the following is TRUE with regards to the WaitForFullGCApproach method?

A.
It is used to return the status of a registered notification for determining whether a full, blocking
garbage collection by the common language is pending.

B.
It is used to return the status of a registered notification for determining whether a full, blocking
garbage collection by the common language runtime has completed.

C.
It is used to return the status of a registered notification for determining whether a full, blocking
garbage collection by the common language runtime has completed in a particular time-out period.

D.
It is used to return the status of a registered notification for determining whether a full, blocking
garbage collection by the common language runtime is pending in a particular time-out period.

Explanation:



Leave a Reply 6

Your email address will not be published. Required fields are marked *


ASV

ASV

Answer B. Compare with 48.

ASV

ASV

Sorry answer is A.

don't test me

don't test me

https://msdn.microsoft.com/en-us/library/system.gc.waitforfullgcapproach(v=vs.110).aspx

WaitForFullGCApproach() “Returns the status of a registered notification for determining whether a full, blocking garbage collection by the common language runtime is imminent.”

WaitForFullGCApproach(Int32) “Returns, in a specified time-out period, the status of a registered notification for determining whether a full, blocking garbage collection by the common language runtime is imminent.”

Since I am just ‘discussing the WaitForFullGCApproach method’ then shouldn’t both A and D be correct? Is this even a multiple answer question?