Sunteți pe pagina 1din 2

Topic: Garbage Collection

Question Type:

MCQs

1. .Net Framework Provide us ___________Memory Management


i.
Manual
ii.
Automatic
iii.
Graphically
iv.
None
2. .Net Framework has a special class ______ for Memory Management
i.
System
ii.
Garbage Collector
iii.
Sweeper
iv.
None
3. A process in which .Net Framework figure-out memory usage is called
i.
Windows
ii.
System
iii.
Hackers
iv.
Garbage Collection
4. The Process of Memory Management is_________ to Programmers
i.
Invisible
ii.
Visible
iii.
Half-Visible
iv.
None
5. When new object is going to create which Instruction is execute by MSIL
i.
CreateObj
ii.
ProduceObj
iii.
GenerateObj
iv.
newObj
6. A collection of blocks of bytes in .Net Framework known as________ which is allocate to
Program
i.
Managed Data
ii.
Managed Heap
iii.
Managed Stack
iv.
None
7. All local or reference variable are store on _________
i.
Heap
ii.
Code Segment
iii.
Stack
iv.
Data Segment
8. How will managed the allocated heap
i.
CLR
ii.
MSIL
iii.
Heap
iv.
Windows
9. GC can call _________number of methods to de-allocate the object
i.
5
ii.
3
iii.
6
iv.
1

1
2
3
4
5
6
7
8

10. When a root points to an object, the object cannot be collected because the application's code can
reach the object this is also called________
i.
Strong Reference
ii.
Weak Reference
iii.
Dummy Reference
iv.
Store Reference
11. Garbage Collector is a ________.
i.
Process
ii.
Thread
iii.
Queue
iv.
Reference
12. Garbage Collector has a ________ Priority.
i.
Medium
ii.
High
iii.
Very High
iv.
Low
13. The garbage collector frees objects that are unmarked and reclaims their memory______ this
process is known as
i.
Sweep
ii.
Marked
iii.
Collect
iv.
Destroy
14. The garbage collector searches for managed objects that are referenced in managed code Known
as
i.
Sweep
ii.
Mark
iii.
Collect
iv.
Destroy
15. Garbage Collection has Maximum____ Number of generation
i.
4
ii.
3
iii.
2
iv.
1
ii
9
ii
ii
10
i
iv
11
ii
i
12
iv
iv
13
i
ii
14
ii
iii
15
ii
i

S-ar putea să vă placă și