practice q2 - CPRE 281 - Practice questions for exam #2...

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

View Full Document Right Arrow Icon
CPRE 281 -- Practice questions for exam #2 10/29/07 1. At least how many bits are required to represent each set of objects below: (a) All integers from –1 to 255. (b) The 340 students in the class. (c) Numbers: 2, 3, 5, 7, 11, 13. 2. At least how many trits (trinary digits) are required to represent each set in question 1 above? 3. What is the range of integer that can be represented by a 10-bit word if (a) Representation of non-negative numbers is used? (b) Sign-magnitude representation is used? (c) 1’s complement representation is used? (d) 2’s complement representation is used? 4. Assume 5-bit 2’s complement representation is used. (a) Convert the following binary numbers to decimal numbers. i) 01010 ii) 10011 (b) Convert the following decimal numbers to binary numbers. i) 10 ii) –5 (c) Negate the following numbers: i) 01010 ii) 10011 (d) Perform the operations below and indicate whether or not overflow (underflow) occurs in each case. 01000
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/06/2008 for the course CPR E 281 taught by Professor Chu,chris during the Fall '07 term at Iowa State.

Page1 / 3

practice q2 - CPRE 281 - Practice questions for exam #2...

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

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