ENSF 461 Final Review Exam Questions
With 100% Verified Answers
Virtual address space -
correct answer ✅an abstraction of physical memory, makes
memory management easier for a process.
physical address -
correct answer ✅Base of the physical address + virtual address
The "real" address location.
Comprised of: physical page number + offset
physical page number is translated from virtual address.
,ENSF 461 Final Review Exam Questions
With 100% Verified Answers
Virtual Address -
correct answer ✅Memory addresses used in virtualized memory.
An abstraction of physical memory.
Made up of the VPN + offset (in binary)
Implicitly managed memory -
correct answer ✅Memory that doesn't have to be explicitly
allocate or deallocate.
stack -
correct answer ✅Holds function calls, function arguments, and
local variables. Can grow or shrink during execution
Is implicitly managed (aka automatic memory)
An example of a bump allocator, allocations are really fast since we
only add or subtract from the stack pointer.
Cons: can only allocate and deallocate memory in reverse order of
which they were allocated
,ENSF 461 Final Review Exam Questions
With 100% Verified Answers
heap -
correct answer ✅dynamically allocated, fine-grain user managed
memory
, ENSF 461 Final Review Exam Questions
With 100% Verified Answers
text -
correct answer ✅Where the instructions of the program are stored
Buffer Overflow -
correct answer ✅trying to access memory outside of the allocated
area
Malloc(x) -
correct answer ✅allocates memory of x number of bytes and
returns a void pointer to those bytes.
With 100% Verified Answers
Virtual address space -
correct answer ✅an abstraction of physical memory, makes
memory management easier for a process.
physical address -
correct answer ✅Base of the physical address + virtual address
The "real" address location.
Comprised of: physical page number + offset
physical page number is translated from virtual address.
,ENSF 461 Final Review Exam Questions
With 100% Verified Answers
Virtual Address -
correct answer ✅Memory addresses used in virtualized memory.
An abstraction of physical memory.
Made up of the VPN + offset (in binary)
Implicitly managed memory -
correct answer ✅Memory that doesn't have to be explicitly
allocate or deallocate.
stack -
correct answer ✅Holds function calls, function arguments, and
local variables. Can grow or shrink during execution
Is implicitly managed (aka automatic memory)
An example of a bump allocator, allocations are really fast since we
only add or subtract from the stack pointer.
Cons: can only allocate and deallocate memory in reverse order of
which they were allocated
,ENSF 461 Final Review Exam Questions
With 100% Verified Answers
heap -
correct answer ✅dynamically allocated, fine-grain user managed
memory
, ENSF 461 Final Review Exam Questions
With 100% Verified Answers
text -
correct answer ✅Where the instructions of the program are stored
Buffer Overflow -
correct answer ✅trying to access memory outside of the allocated
area
Malloc(x) -
correct answer ✅allocates memory of x number of bytes and
returns a void pointer to those bytes.