
ECE2030 A,B: Dr. Schimmel: Homework 6 - SOLUTIONS
1. 11011 = 16+8+2+1 = 27
2. 11.1 = 2+1+ ½ = 3.5 (places to the right of the decimal point have the values 1/21, 1/22, 1/23,
1/24… or 0.5, 0.25, 0.125, 0.0625, KNOW THESE!)
3. 1010.011 = 8+2+0.25+0.125 = 10.375
4. 61 = 0111101 (the leading 0 is NECESSARY to signify a positive number, 111101 as a
signed magnitude number is -29)
5. -100 = 11100100
6. 0x05EF = 0000010111101111 (each hex # is 4 bits, so write down each digit as a 4 bit binary
number)
7. 0xEF = 239 (0xEF are the least significant 8 bits)
8. 0xABDC = 1010101111011100
9. 0xAB = 171
10. 111111 is the smallest 6 bit signed magnitude number = -31 (you should KNOW the smallest
and largest values of k-bit unsigned, signed magnitude, and 2’s complement numbers)
11. 011111 is the largest 6 bit signed magnitude number = 31 (you should KNOW the smallest
and largest values of k-bit unsigned, signed magnitude, and 2’s complement numbers)
12. -143 = 101110001 (to get 2’s complement, take positive 143 and convert it to binary:
10001111, invert all values: 01110000, add 1 to get 101110001).
13. -76 = 10110100
14. True. You can only get overflow when you add two positive or two negative 2’s
complement numbers, but not when you add a negative and a positive. Verify this with the
9/28/09 4-bit circle example, also see 9/30/09 notes or the book on overflow.
15. False, see #14 for explanation.
16. True, see #14 for explanation.