Computer Science 61CL - Spring 2001 - Wawrzynek - Midterm 1

Computer Science 61CL - Spring 2001 - Wawrzynek - Midterm 1...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS61C, Midterm 1 Spring 2001 1) [10 pts] Number Representation Convert the folowing 8-bit numbers from two's complement binary to decimal: 01110011 = 11101101 = Convert the following decimal number to an 8-bit two's complement binary number: -28 = Convert from hex to 16-bit binary: A5B7 = Convert from single precision IEEE floating-point to decimal: 1011111110100000000000000000 = Convert from decimal to single precision IEEE floating-point: 0.125 = 2) [14 pts] Short Answer. For multiple choice and true/false, circle your answer. a) When multiplying two n-bit numbers, what is the maximum number of bits in the result? b) When adding two n-bit numbers, what is the maximum number of bits in the result? c) Write the MIPS instruction that you would use to set to zero all but the lowest (the least significant) bit of register $t0. d) Give the names of two different MIPS instructions that you could use to multiply a value by 2. e) Multiplication of two pointers is a legal operation in the C language. [true false] f) 2's complement representation is commonly used because it simplifies multiplication and division. [true false] g) What is the decimal value of the most negative 2's complement 4-bit number? h) Which of the following instructions specify an address that a linker never needs to resolve? [beq lw j] i) In ten words or less, explain the main disadvantage of interrupts over polling. j) In ten words or less, explain why interrupts are preferred over polling for handling I/O devices. k) Name the MIPS instruction that you would use to transfer a word of data from a general- purpose register to an output device register. l) What is the type of program that is used to join together multiple binary object files into file:///C|/Documents%20and%20Settings/Jason%20Raft. ..pring%202001%20-%20Wawrzynek%20-%20Midterm%201.htm (1 of 5)1/27/2007 6:37:02 PM
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CS61C, Midterm 1 Spring 2001 an executable binary file? m) All MIPS processor include special hardware for executing floating point instructions.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/26/2009 for the course CS 61CL taught by Professor Clancy during the Fall '08 term at Berkeley.

Page1 / 5

Computer Science 61CL - Spring 2001 - Wawrzynek - Midterm 1...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online