Segment Base Size: Code 32k 2k Heap 34k 2k Stack 28k 2k
Segment Base Size: Code 32k 2k Heap 34k 2k Stack 28k 2k
Code 32k 2k
Heap 34k 2k
Stack 28k 2k
True or False: The stack has been relocated to physical address 28KB in the diagram, but
with one important difference: it grows forward in physical memory.
Select one:
True
False
Feedback
The correct answer is 'False'.
Question 2
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Consider a 32-bit address for a two-level paging system with an 8 KB page size. The
outer page table has 1024 entries. How many bits are used to represent the second level
page table?
Select one:
a.
10
b.
8
c.
12
d.
9
Feedback
Your answer is incorrect.
The correct answer is: 9
Question 3
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
A(n) ______ matches the process with each entry in the TLB.
Select one:
a.
address-space identifier
b.
process id
c.
stack
d.
page number
Feedback
Your answer is incorrect.
The correct answer is: address-space identifier
Question 4
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Basic strategies to memory allocates does not include:
Select one:
a.
Worst Fit
b.
Last Fit
c.
Best Fit
d.
First Fit
Feedback
Your answer is correct.
The correct answer is: Last Fit
Question 5
Correct
Mark 1.00 out of 1.00
Flag question
Question text
These instructions will store the value of eax to at the end of the program:
128: movl 0x0(%ebx), %eax ;load 0+ebx into eax
132: addl $0x03, %eax ;add 3 to eax register
135: movl %eax, 0x0(%ebx) ;store eax back to mem
Select one:
a.
Different memory location
b.
Multiple locations
c.
Same memory location
d.
One location
Feedback
Your answer is correct.
The correct answer is: Same memory location
Question 6
Correct
Mark 1.00 out of 1.00
Flag question
Question text
What is used to free heap memory no longer in use.
Select one:
a.
The malloc() Call
b.
Stack
c.
The free() Call
d.
Automatic
Feedback
Your answer is correct.
The correct answer is: The free() Call
Question 7
Correct
Mark 1.00 out of 1.00
Flag question
Question text
_______ occurs when you forget to free memory.
Select one:
a.
Memory leak
b.
Memory loss
c.
Memory block
d.
None of the above
Feedback
Your answer is correct.
The correct answer is: Memory leak
Question 8
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Which of the following data structures is appropriate for placing into its own segment?
Select one:
a.
heap
b.
kernel code and data
c.
user code and data
d.
all of the above
Feedback
Your answer is incorrect.
The correct answer is: all of the above
Question 9
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
The data structure free list is used to track?
Select one:
a.
Ranges of the virtual memory which is not currently in use
b.
Ranges of the physical memory which is currently in use
c.
Ranges of the physical memory which is not currently in use
d.
Ranges of the virtual memory which is currently in use
Feedback
Your answer is incorrect.
The correct answer is: Ranges of the physical memory which is not currently in use
Question 10
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Which is not a common error?
Select one:
a.
Freeing memory before you are done with it
b.
Forgetting to initialize allocated memory
c.
Forgetting to allocate memory
d.
All are common errors
Feedback
Your answer is correct.
The correct answer is: All are common errors