Contents

What are implicit and explicit implementations of freelists?
a) garbage collection and new or malloc operators respectively
b) new or malloc and garbage collection respectively
c) implicit implementation is not favored
d) explicit implementation is not favored

a

Explanation: Gc and new most widely known.


What datastructures can be used in implementing a free list?
a) only linked list
b) linked list or sort trees
c) arrays                                               
d) trees

b

Explanation: Sort trees can also be used in impelementing free lists which remaincomplex.


What are different ways of implementing free lists and which is simple among them?
a) best fit, first fit, worst fit, simple-first fit
b) best fit, first fit, worst fit, simple-best fit
c) best fit, first fit, worst fit, simple-worst fit
d) best fit simple-best fit

a

What is buddy memory management of free lists ?
a) modified version of first fit
b) buddy allocation keeps several
 free lists, each one holds blocks which are of one particular size
c) modified version of best fit
d) a tree representation of free lists

b

How does implicit free lists(garbage collection) works in adding memory to free list ?
a) whichever comes last will be added to free list
b) whichever comes first will be added to free list
c) certain blocks cannot be used if there are no pointers to them and hence they can be freed
d) makes a probabilistic guess

c

Explanation: When no pointers pointing a block that means it is useless to be in memory.


Accessing free list very frequently for wide range of addresses can lead to
a) paging
b) segmentation fault
c) memory errors
d) cache problems

a

Explanation: Paging in/out of disk will be caused.