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

Quiz: Processes and Threads · Question 9 of 10

Which part of a process's memory holds objects allocated while the program runs (for example with malloc)?

Which part of a process's memory holds objects allocated while the program runs (for example with malloc)?

  1. A.Code (text)
  2. B.Stack
  3. C.Heap
  4. D.PCB
Answer & explanation

Correct answer: Heap

The heap grows as the program allocates memory at run time; the stack holds function calls and local variables.

Can you get the rest right without peeking?

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

Start the quiz →