2 2 votes The Operating System of a computer may periodically collect all the free memory space to form contiguous block of free space. This is called: Concatenation Garbage Collection Collision Dynamic Memory Allocation Operating System isro2018 memory-management operating-system + – Arjun 5.6k views answer comment Share Follow Print See all 5 Comments 5 5 Comments reply Show 2 previous comments Hatim commented Oct 23, 2025 reply Follow flag what is difference between Garbage Collection and Compaction?? 0 0 replyShare Siddharth_Perkar commented Aug 21 reply Follow flag Garbage collection = identify and remove memory that is no longer being used.Concatenation = combine separate free spaces into one contiguous free block.Just because of the word 'periodically' answer might be chosen as Garbage collection 0 0 replyShare ISHAN KUMRA commented 4 days ago reply Follow flag @Hatim @shriverdhan Compaction is an optional substep of Garbage collection (example = ZGC). Main role of Garbage collector is to "reclaim" free spaces of memory. If compaction was in the options, answer would still be the same. And if the question didn't have "may" then it doesn't have any answer. 0 0 replyShare Please log in or register to add a comment.
2 2 votes Answer Is B. It is job of Garbage collector to collect all free memory space at one place. sonveer tomar 1 answered Apr 22, 2018 sonveer tomar 1 comment Share Follow 0 reply Please log in or register to add a comment.
1 1 vote (B) Garbage Collection jjayantamahata answered Apr 22, 2018 jjayantamahata comment Share Follow 0 reply Please log in or register to add a comment.
1 1 vote B.Garbage Collector sonveer tomar 1 answered Apr 23, 2018 sonveer tomar 1 comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes ANSWER: B Garbage Collection Explanation: In order to use memory, programs conduct an action called "allocation" where part of the memory is set aside for a particular use. The C malloc() function and its counterpart calloc() are used to allocate memory. When this memory is no longer needed, it is freed with the free() function. The prototypes for both functions are available in stdlib.h. However, as memory is allocated and freed in various locations, the memory can become fragmented. Sometimes requests to allocate memory will fail as a result. The areas that are causing the allocation problems are referred to as "garbage" for historic reasons. "Garbage collection" is the process of moving allocated memory around to make larger contiguous blocks available (like defragmenting your hard disk). However, due to very low priority for C and C++. saurav raghaw answered Apr 22, 2018 saurav raghaw comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes It is previous year UGC NET MCQ. link to the question: https://compscibits.com/Data-Structures/Arrays-and-Pointers/discussion/6414 The answer is option B. Garbage Collection. Dhananjay Rajmane 6 answered Apr 24, 2018 Dhananjay Rajmane 6 comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes b.garbage collection manisha07 answered Apr 25, 2018 manisha07 comment Share Follow 0 reply Please log in or register to add a comment.