Quiz submission record for quiz2-1-1 at Mon Jun 28 08:57:13 2004: Your Answer for Question 1: a. only Even if you call malloc with 0 size, a block is used up for the header, so the number of free blocks is always reduced by 1 unit. Your Answer for Question 2: b. only Some calls my not be successful. Such calls would be free(p), where p points to something that has already been freed. Your Answer for Question 3: Java equivalent of malloc in C is new. There is no explicit free operation in Java that is equivalent to free in C. Java uses methods in which storage is deallocated when no longer needed. There can be no automatic memory allocation/deallocation for C because it is impossible to tell when a particular storage is no longer needed. Your Answer for Question 4: Reference count method will not work because it is a circular structure, meaning it will always have a pointer to itself. And if there is a pointer to itself, reference count can not claim the object as garbage because the pointer count is more than 0. Mark and sweep method will work because using depth first traversals, this circular object will never be reached or marked. Thus it will be considered as garbage and swept away. Your Answer for Question 5: Nothing was difficult or confusing about the reading. I just found it interesting learning the different ways to free up memory. I never knew such a thing existed. I was just wondering if WinXP has functions like those noted in the readind, because I once had to download a program that freed up my ram. Your unique submission ID is quiz2-1-1-cs61c-av-1088438233-2223.