Garbage collection is best defined as which of the following?
- A. A variable listed in a function's definition that receives a value when the function is called.
- B. An automatic memory management process that reclaims memory occupied by objects no longer in use. ✓
- C. A software design technique that breaks a program into separate, interchangeable modules.
- D. An informal, high-level description of a program's logic that is not tied to any specific programming language syntax.
Correct answer
B. An automatic memory management process that reclaims memory occupied by objects no longer in use.
Explanation
Garbage collection refers to an automatic memory management process that reclaims memory occupied by objects no longer in use.