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 10bit word if
(a) Representation of nonnegative numbers is used?
(b) Signmagnitude representation is used?
(c) 1’s complement representation is used?
(d) 2’s complement representation is used?
4.
Assume 5bit 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.
 Fall '07
 chu,chris
 Binary numeral system, Decimal, Logic gate, Binarycoded decimal, 4to1 Multiplexer

Click to edit the document details