{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

quiz6 - valid reasons why a computer's working memory isn't...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 220: Computer Systems II: Architecture and Programming Fall 2009 - Section A0 Quiz #6 - 2009/11/18 Name: ______________________________ ================================================================================ 1: Circle which one (1) of the following is most accurately what a "dangling pointer" is: a) A pointer that does not have a well-defined type. b) A pointer that is not yet set to a valid area of memory. c) A pointer that points to an area of memory that has been deallocated. ================================================================================ 2: Circle which one (1) of the following is the C function used to deallocate memory allocated by the malloc() function: a) dealloc() b) unalloc() c) ralloc() d) free() ================================================================================ 3: Circle which of the following (it could be any number of them) are
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: valid reasons why a computer's working memory isn't made entirely of the high-speed SRAM used in the system's memory cache. a) It would be unreliable. b) DRAM is actually faster. c) It would be too expensive. d) It would use too much power. ================================================================================ 4: Circle which one (1) of the following best indicates what the following C code would do in GCC on an 80386-compatible processor: ============================================= __asm__( "addl %2, %0" "addl %2, %1" : "=r" (var1), "=r" (var2) : "r" (var3), "1" (var1), "0" (var2) ); ============================================= a) var1 = var1 + var2 b) var1 = var1 + var3 var2 = var2 + var1 var2 = var2 + var1 c) var1 = var1 + var3 d) var1 = var2 + var3 var2 = var2 + var3 var2 = var1 + var3...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern