You are on page 1of 2

Bach Nguyen

CMPS 290
02/28/16
HW #4
1. What is the decimal representation of the following unsigned binary integers?
a. 11101000(2)=2^7+2^6+2^5+2^3=232(10)
b. 10001010(2)=2^7+2^3+2^1=138(10)
2. What is the minimum number of binary bits needed to represent each of the
following unsigned decimal integers?
a. 64(10) =2^6= 0100 0000(2) which amount to be 7 bits that number 64 needed.
b. 513(10)= 2^9+2^0=0010 0000 0001(2) for number 513 it needed 10 bits in
binary to represent it.
3. What is the hexadecimal representation of each of the following binary numbers?
a. 1000 1101 0101 0111(2) = 36,183(10) = 8D57(16)
b. 1011 0111 1110 1011(2) = 47,083(10) = B7EB(16)
4. What is the binary representation of the following hexadecimal numbers?
a. F5B6AEC(16) = 257,649,388(10) = 1111 0101 1011 0110 1010 1110 1100 (2)
b. BD97C7A1(16) = 3,180,840,865(10) = 1011 1101 1001 0111 1100 0111 1010
0001(2)
5. What is the unsigned decimal representation of each hexadecimal integer?
a. 3D(16) = 61(10)
b. 7F(16) = 127(10)
6. What is the decimal representation of the following signed binary numbers?
a. 10100101(2) = - 91(10)
b. 11010000(2) = - 48(10)
7. What is the 8-bit binary representation of each of the following signed decimal
integer?
a. -35(10) = 11011101(2)
b. -18(10) = 11101110(2)
8. What is the result of each pair of calculation?
a. 00011111(2) + 00100010(2) = 0100 0001(2)

b. 01100000(2) - 00010010(2) = 0100 1110(2)

You might also like