# COMP1521 18s1 Exam Q6 A. i) Region1 is Code. This is where the program code is stored. ii) Region2 is Global Data. This is where global variables as well as string literals are stored. iii) Region3 is Heap. This is where malloc()'ed objects are stored. iv) Region4 is Stack. This is where local variables and the stack frames for each function as they are called are located. B. malloc()'ed objects are placed in Region3 (Heap). C. Region1 (Code) and Region2 (Data) are fixed in size once the program starts executing.