Quiz-memory Management In Microsoft.Net

9 Questions | Total Attempts: 343

SettingsSettingsSettings
Please wait...
Quiz-memory Management In Microsoft.Net

The quiz test your knowledge of. Net Memory Management concepts.


Questions and Answers
  • 1. 
    .Net Garbage collector object collection is
    • A. 

      Deterministic

    • B. 

      Non-deterministic

    • C. 

      Opportunistic

    • D. 

      Predictive

  • 2. 
    Which of these events will not cause the triggering of garbage Collection?
    • A. 

      Generation 0 is full

    • B. 

      AppDomain unloading or CLR shutdown

    • C. 

      Explicit calls to Garbage Collector collect method

    • D. 

      Generation 1 is full

  • 3. 
    MS.Net generational garbage collector supports _ generations.
    • A. 

      1

    • B. 

      2

    • C. 

      3

    • D. 

      4

  • 4. 
    An object with finalizer will require minimum _ garbage collection cycles to be collected
    • A. 

      1

    • B. 

      2

    • C. 

      3

    • D. 

      4

  • 5. 
    Which of the following statement is false regarding C# using statement?
    • A. 

      Used for deterministically cleaning up the object

    • B. 

      Depends on the object finalize method

    • C. 

      Depends on the object implementing IDisposable interface

    • D. 

      Can be used with value type as well

  • 6. 
    Which of the following statement is true regarding Garbage Collector?
    • A. 

      It uses a fix quota of memory for different generation

    • B. 

      The algorithm used by GC is configurable by administrator

    • C. 

      It is a self optimizing Garbage Collector

    • D. 

      Calling GC.Collect will immediate start garbage Collection

  • 7. 
    Which one of the following can not be a root for Garbage collector?
    • A. 

      Static fields

    • B. 

      Method Parameter

    • C. 

      Native win32 Handles

    • D. 

      Local Variables

  • 8. 
    Which of the following statement is true regarding .Net Automatic Memory Management?
    • A. 

      This eliminates the leakage of managed memory.

    • B. 

      It takes away memory management task from developer.

    • C. 

      It prevents leaking native Windows resources using finalize and dispose pattern

    • D. 

      It takes away all kind of Windows resource management from developer

  • 9. 
    Which of the following is not a static method of GC class?
    • A. 

      SuppressFinalize

    • B. 

      ReRegisterForFinalize

    • C. 

      RegisterFinalize

    • D. 

      Collect