Skip to content
Related Articles

Related Articles

ISRO | ISRO CS 2018 | Question 59
  • Last Updated : 10 Jul, 2018

The Operating System of a computer may periodically collect all the free memory space to form contiguous block of free space. This is called:
(A) Concatenation
(B) Garbage collection
(C) Collision
(D) Dynamic Memory Allocation

Answer: (B)

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :