Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Memory Organization Match the description of each portion of a typical program r

ID: 3831674 • Letter: M

Question

Memory Organization Match the description of each portion of a typical program resident in memory to its name. On the mobile app, click on the chopped-up description to get a pop-up with the full text. Response Drag and drop to match Premise Listing of instructions to feed 1 Heap A to the CPU in sequential ord er. Memory that is specifically al located and pointers 2 Stack given t B o when the program requests it such as when malloc() is called A repository for unchanging 3 Data Segment ReadWrite yet globally accessible s s hard-coded into the progra Tracks the trace of pointers t hat allow functions as a pro 4 Data Segment Read Only gram runs to pass control b ack to the piece of code that called them originally when t hey return. Holds initialized static variabl 5 Data Segment Uninitialized es in a manner that allows th e program to change their co ntents during execution

Explanation / Answer

[1] Heap: --> Heap is the segment where dynamic memory allocation usually takes place [B]
[2] Stack : --> [D]
[3] Data Segment read-write : --> [C]
[4] Data Segment Read only   : --> [E]
[5] Uninitialized Data Segment --> [F]
[6] Code Segment --> [A]