🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Dynamic Memory: all 10 questions

Quiz: Dynamic Memory · Question 2 of 10

What is a memory leak?

What is a memory leak?

  1. A.Reading uninitialised memory
  2. B.Allocated memory that is never freed
  3. C.Freeing memory twice
  4. D.Writing to a NULL pointer
Answer & explanation

Correct answer: Allocated memory that is never freed

The memory stays reserved until the program ends.

Can you get the rest right without peeking?

Take the timed Quiz: Dynamic Memory quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →