Skip to content
Sharp

Engineering Interviews · interview question

In the context of memory management, what is a memory leak?

Multiple choiceMediumchapter-20-curatedpremiumengineering-interviewscode-review-spotting-bugs
Choose one answer
Answer and explanation

Correct answer

B. Objects that are no longer needed but not reclaimed

Why

A memory leak occurs when objects that are no longer needed are still referenced, preventing the garbage collector from reclaiming their memory. This can lead to increased memory usage and eventually out-of-memory errors.

Test yourself on Engineering Interviews

A free test with instant, explained results. No account needed.

Start free test
All Engineering Interviews questions →