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

Info iconThis 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
Background 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

This note was uploaded on 04/20/2010 for the course CS 220 taught by Professor Greene during the Spring '08 term at Binghamton University.

Ask a homework question - tutors are online