CMPSCI 145

Homework 2 Form
(Integers)


CMPSCI 145 Students, Current Semester, Only!

Please fill in the following form and click the submit button

UMass Spire ID Number
Enter your full name,
Last Name, First Name, MI, as in:
Smith, Fred Q.


HOMEWORK #2

Answer the following questions. For all questions involving signed binary integers, assume that the representation uses a two's complement interpretation, with the left-most bit the sign bit (and not sign and magnitude or one's complement).



1. What is the value of decimal number 0 in 8-bit unsigned binary?
2. What is the value of decimal number 63 in 8-bit unsigned binary?
3. What is the value of decimal number 64 in 8-bit unsigned binary?
4. What is the value of decimal number 255 in 8-bit unsigned binary?
5. Yes or No: can the decimal number 256 be represented in 8 bits?
6. What is the value of decimal number 255 in hexadecimal?
7. What is the decimal value of binary number 01111111 interpreted as an unsigned 8-bit integer?
8. What is the decimal value of binary number 10000001 interpreted as an unsigned 8-bit integer?
9. What is the decimal value of binary number 10000001 interpreted as an signed 8-bit integer?
10.Yes or No: Does 01111111+10000001 generate an unsigned overflow?
11.Yes or No: Does 01111111+10000001 generate a signed overflow?
12.What is the decimal value of the 8-bit signed binary sum 01111111+10000001?
13.Using 8-bit signed binary, what is the result of negating 00000000?
14.Using 8-bit signed binary, what is the result of negating 00000001?
15.Using 8-bit signed binary, what is the result of negating 10000000?