{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

practice q2

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

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

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

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 3

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

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

View Full Document
Ask a homework question - tutors are online