What is the purpose of a garbage collector in software? MCQ with Answer and Explanation

What is the purpose of a garbage collector in software?
A. Compiles code
B. Manages files
C. Automatically deallocates unused memory
D. Links libraries
Answer: Option C
Solution (By JKSSB Mock Tests)
Garbage collection frees memory that is no longer in use, preventing leaks.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Computer Software Questions

Question #1
What is the difference between system software and middleware?
A. System software is for networks; middleware is for storage
B. They are the same
C. System software manages hardware; middleware connects applications
D. Middleware manages hardware; system software connects applications

Correct Answer: Option C


Explanation:
Middleware sits between OS and applications, facilitating communication; system software manages hardware.

This question belongs to: Computer Computer Software
Question #2
Which of the following is an example of a utility software for disk imaging?
A. MS Word
B. Chrome
C. Excel
D. Norton Ghost

Correct Answer: Option D


Explanation:
Norton Ghost is a disk cloning and imaging utility.

This question belongs to: Computer Computer Software
Question #3
What is the function of a debugger?
A. To compile programs
B. To find and fix errors in programs
C. To interpret programs
D. To link programs

Correct Answer: Option B


Explanation:
A debugger is a tool used to test and remove bugs (errors) in software.

This question belongs to: Computer Computer Software