The Operating System of a computer may periodically collect all the free memory space to form contiguous block of free space. This is called:
(B) Garbage collection
(D) Dynamic Memory Allocation
Explanation: All the objects which are created dynamically are allocated memory in the heap. On continuous creation of these objects, memory might get overflow. So we need to clear heap memory by releasing memory for all those objects which are no longer referenced by the program (or the unreachable objects) so that the space is made available for subsequent new objects. This memory can be released by garbage collection, it releases the heap memory for all the unreferenced objects.
Option (B) is correct.
Quiz of this Question