All mock tests are FREE till 31 December — register to save your progress
Unit 5 · System Software and Operating System Paper 2 CS · December 2022 Shift 1

A process in memory also contains a heap section. What is the heap used for?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. Dynamically allocating memory during process run time

Explanation

The heap holds memory allocated dynamically at run time (malloc/new). Temporary data is on the stack, and scheduling/accounting information is in the PCB.

More System Software and Operating System questions