YOU ARE DOWNLOADING DOCUMENT

Please tick the box to continue:

Transcript
Page 1: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1001Page: 1 Name:

1001

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -91,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -67,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -96,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -34,what is this number's binary representation in 8-bit two's complement?

Page 2: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1001Page: 2 Name:

1001

e. (5 pts) Given that 10010110 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11010000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10010010 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11011011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 3: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1002Page: 1 Name:

1002

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -91,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -31,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -110,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -104,what is this number's binary representation in 8-bit two's complement?

Page 4: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1002Page: 2 Name:

1002

e. (5 pts) Given that 10111000 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11000011 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10100000 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11000000 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 5: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1003Page: 1 Name:

1003

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -91,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -126,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -52,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -85,what is this number's binary representation in 8-bit two's complement?

Page 6: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1003Page: 2 Name:

1003

e. (5 pts) Given that 11001111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11011011 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11011111 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11110001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 7: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1004Page: 1 Name:

1004

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -91,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -42,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -33,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -86,what is this number's binary representation in 8-bit two's complement?

Page 8: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1004Page: 2 Name:

1004

e. (5 pts) Given that 11100010 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10001001 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11101010 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10000000 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 9: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1005Page: 1 Name:

1005

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -91,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -76,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -55,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -60,what is this number's binary representation in 8-bit two's complement?

Page 10: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1005Page: 2 Name:

1005

e. (5 pts) Given that 10011001 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10101100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10000110 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 11: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1006Page: 1 Name:

1006

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -91,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -101,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -117,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -8,what is this number's binary representation in 8-bit two's complement?

Page 12: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1006Page: 2 Name:

1006

e. (5 pts) Given that 11110100 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11000011 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10110010 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11100010 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 13: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1007Page: 1 Name:

1007

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -91,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -7,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -11,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -111,what is this number's binary representation in 8-bit two's complement?

Page 14: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1007Page: 2 Name:

1007

e. (5 pts) Given that 10101011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11100110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11001110 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11000101 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 15: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1008Page: 1 Name:

1008

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -102,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -65,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -30,what is this number's binary representation in 8-bit two's complement?

Page 16: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1008Page: 2 Name:

1008

e. (5 pts) Given that 11011110 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10110111 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10010110 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10110011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 17: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1009Page: 1 Name:

1009

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -8,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -87,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -5,what is this number's binary representation in 8-bit two's complement?

Page 18: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1009Page: 2 Name:

1009

e. (5 pts) Given that 10010101 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11011010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11111001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11010001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 19: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1010Page: 1 Name:

1010

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -33,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -22,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -81,what is this number's binary representation in 8-bit two's complement?

Page 20: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1010Page: 2 Name:

1010

e. (5 pts) Given that 11110000 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11110010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10100110 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10100001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 21: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1011Page: 1 Name:

1011

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -67,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -44,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -56,what is this number's binary representation in 8-bit two's complement?

Page 22: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1011Page: 2 Name:

1011

e. (5 pts) Given that 10100111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10010100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11000010 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11011011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 23: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1012Page: 1 Name:

1012

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -111,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -24,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -57,what is this number's binary representation in 8-bit two's complement?

Page 24: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1012Page: 2 Name:

1012

e. (5 pts) Given that 10111010 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11000011 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11001101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10000001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 25: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1013Page: 1 Name:

1013

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -18,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -46,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -31,what is this number's binary representation in 8-bit two's complement?

Page 26: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1013Page: 2 Name:

1013

e. (5 pts) Given that 11110001 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11100110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11101001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 27: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1014Page: 1 Name:

1014

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -43,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -109,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -108,what is this number's binary representation in 8-bit two's complement?

Page 28: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1014Page: 2 Name:

1014

e. (5 pts) Given that 11001100 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11111101 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10010101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10001011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 29: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1015Page: 1 Name:

1015

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -77,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -2,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

Page 30: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1015Page: 2 Name:

1015

e. (5 pts) Given that 10000011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10100000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10110001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11000110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 31: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1016Page: 1 Name:

1016

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -121,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -111,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -83,what is this number's binary representation in 8-bit two's complement?

Page 32: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1016Page: 2 Name:

1016

e. (5 pts) Given that 10010110 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11001111 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10111101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11101011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 33: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1017Page: 1 Name:

1017

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -28,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -5,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -57,what is this number's binary representation in 8-bit two's complement?

Page 34: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1017Page: 2 Name:

1017

e. (5 pts) Given that 11001101 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11110010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11011000 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10100110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 35: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1018Page: 1 Name:

1018

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -52,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -67,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -6,what is this number's binary representation in 8-bit two's complement?

Page 36: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1018Page: 2 Name:

1018

e. (5 pts) Given that 10101000 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10001001 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10000101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11110110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 37: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1019Page: 1 Name:

1019

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -87,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -89,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -108,what is this number's binary representation in 8-bit two's complement?

Page 38: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1019Page: 2 Name:

1019

e. (5 pts) Given that 11011111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10101100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10100001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10110001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 39: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1020Page: 1 Name:

1020

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -3,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -70,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -109,what is this number's binary representation in 8-bit two's complement?

Page 40: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1020Page: 2 Name:

1020

e. (5 pts) Given that 11110010 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11011010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10101100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11010110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 41: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1021Page: 1 Name:

1021

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -37,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -91,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -83,what is this number's binary representation in 8-bit two's complement?

Page 42: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1021Page: 2 Name:

1021

e. (5 pts) Given that 10101001 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11111101 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11001000 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10010000 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 43: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1022Page: 1 Name:

1022

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -62,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -26,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -32,what is this number's binary representation in 8-bit two's complement?

Page 44: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1022Page: 2 Name:

1022

e. (5 pts) Given that 10000100 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10010101 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11110100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11011001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 45: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1023Page: 1 Name:

1023

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -96,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -48,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -6,what is this number's binary representation in 8-bit two's complement?

Page 46: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1023Page: 2 Name:

1023

e. (5 pts) Given that 10111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10110111 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10010000 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10011011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 47: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1024Page: 1 Name:

1024

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -42,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -110,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -119,what is this number's binary representation in 8-bit two's complement?

Page 48: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1024Page: 2 Name:

1024

e. (5 pts) Given that 10110000 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10000110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10110010 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10000010 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 49: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1025Page: 1 Name:

1025

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -76,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -4,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -94,what is this number's binary representation in 8-bit two's complement?

Page 50: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1025Page: 2 Name:

1025

e. (5 pts) Given that 11100111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10101001 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11001110 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10111100 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 51: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1026Page: 1 Name:

1026

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -101,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -66,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -42,what is this number's binary representation in 8-bit two's complement?

Page 52: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1026Page: 2 Name:

1026

e. (5 pts) Given that 11000010 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11000001 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11111010 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10001100 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 53: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1027Page: 1 Name:

1027

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -7,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -88,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -17,what is this number's binary representation in 8-bit two's complement?

Page 54: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1027Page: 2 Name:

1027

e. (5 pts) Given that 11100011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10010110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11000111 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11010110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 55: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1028Page: 1 Name:

1028

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -51,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -69,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -17,what is this number's binary representation in 8-bit two's complement?

Page 56: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1028Page: 2 Name:

1028

e. (5 pts) Given that 10001100 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10010010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10100010 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11101100 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 57: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1029Page: 1 Name:

1029

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -86,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -90,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -120,what is this number's binary representation in 8-bit two's complement?

Page 58: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1029Page: 2 Name:

1029

e. (5 pts) Given that 11000011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10110101 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10111101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10100111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 59: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1030Page: 1 Name:

1030

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -110,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -25,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -68,what is this number's binary representation in 8-bit two's complement?

Page 60: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1030Page: 2 Name:

1030

e. (5 pts) Given that 10011110 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11001100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11101010 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11110111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 61: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1031Page: 1 Name:

1031

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -17,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -47,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -43,what is this number's binary representation in 8-bit two's complement?

Page 62: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1031Page: 2 Name:

1031

e. (5 pts) Given that 10000110 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10110010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10011001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11110110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 63: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1032Page: 1 Name:

1032

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -61,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -27,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -44,what is this number's binary representation in 8-bit two's complement?

Page 64: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1032Page: 2 Name:

1032

e. (5 pts) Given that 11101000 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10011110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10010001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11010111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 65: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1033Page: 1 Name:

1033

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -95,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -49,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -18,what is this number's binary representation in 8-bit two's complement?

Page 66: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1033Page: 2 Name:

1033

e. (5 pts) Given that 10011111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11000001 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10101101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10010010 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 67: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1034Page: 1 Name:

1034

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -120,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -112,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -94,what is this number's binary representation in 8-bit two's complement?

Page 68: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1034Page: 2 Name:

1034

e. (5 pts) Given that 11111010 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11011000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11011001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11100010 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 69: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1035Page: 1 Name:

1035

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -27,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -6,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -69,what is this number's binary representation in 8-bit two's complement?

Page 70: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1035Page: 2 Name:

1035

e. (5 pts) Given that 10110001 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11110101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10011100 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 71: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1036Page: 1 Name:

1036

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -71,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -114,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -70,what is this number's binary representation in 8-bit two's complement?

Page 72: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1036Page: 2 Name:

1036

e. (5 pts) Given that 11000100 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10101001 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10000000 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11000001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 73: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1037Page: 1 Name:

1037

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -105,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -8,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -44,what is this number's binary representation in 8-bit two's complement?

Page 74: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1037Page: 2 Name:

1037

e. (5 pts) Given that 11111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11001100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10011100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11111100 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 75: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1038Page: 1 Name:

1038

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -2,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -71,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -121,what is this number's binary representation in 8-bit two's complement?

Page 76: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1038Page: 2 Name:

1038

e. (5 pts) Given that 11010110 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11100100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11001001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11001100 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 77: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1039Page: 1 Name:

1039

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -36,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -93,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -95,what is this number's binary representation in 8-bit two's complement?

Page 78: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1039Page: 2 Name:

1039

e. (5 pts) Given that 10001101 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10000110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11100101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10000111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 79: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1040Page: 1 Name:

1040

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -83,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -3,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -19,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -15,what is this number's binary representation in 8-bit two's complement?

Page 80: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1040Page: 2 Name:

1040

e. (5 pts) Given that 11000000 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11011000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11110100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11010111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 81: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1041Page: 1 Name:

1041

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -37,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -40,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -117,what is this number's binary representation in 8-bit two's complement?

Page 82: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1041Page: 2 Name:

1041

e. (5 pts) Given that 11110111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10010000 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10010010 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 83: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1042Page: 1 Name:

1042

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -83,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -62,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -103,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -65,what is this number's binary representation in 8-bit two's complement?

Page 84: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1042Page: 2 Name:

1042

e. (5 pts) Given that 11010010 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10010010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10111100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11100010 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 85: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1043Page: 1 Name:

1043

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -83,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -96,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -125,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -40,what is this number's binary representation in 8-bit two's complement?

Page 86: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1043Page: 2 Name:

1043

e. (5 pts) Given that 10001001 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10110101 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10011101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11001100 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 87: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1044Page: 1 Name:

1044

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -12,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -105,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -41,what is this number's binary representation in 8-bit two's complement?

Page 88: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1044Page: 2 Name:

1044

e. (5 pts) Given that 10011100 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11100011 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11100100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11000010 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 89: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1045Page: 1 Name:

1045

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -47,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -127,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -15,what is this number's binary representation in 8-bit two's complement?

Page 90: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1045Page: 2 Name:

1045

e. (5 pts) Given that 11010011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10000110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11111111 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11111101 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 91: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1046Page: 1 Name:

1046

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -71,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -62,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

Page 92: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1046Page: 2 Name:

1046

e. (5 pts) Given that 10011101 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10101100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11001101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10111110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 93: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1047Page: 1 Name:

1047

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -106,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -84,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -66,what is this number's binary representation in 8-bit two's complement?

Page 94: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1047Page: 2 Name:

1047

e. (5 pts) Given that 11100101 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11000000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11001000 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10000111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 95: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1048Page: 1 Name:

1048

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -22,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -64,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -67,what is this number's binary representation in 8-bit two's complement?

Page 96: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1048Page: 2 Name:

1048

e. (5 pts) Given that 11111000 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11101111 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11010011 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10101101 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 97: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1049Page: 1 Name:

1049

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -56,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -86,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -41,what is this number's binary representation in 8-bit two's complement?

Page 98: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1049Page: 2 Name:

1049

e. (5 pts) Given that 10101111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10010010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11101111 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11100111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 99: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1050Page: 1 Name:

1050

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -81,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -21,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -118,what is this number's binary representation in 8-bit two's complement?

Page 100: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1050Page: 2 Name:

1050

e. (5 pts) Given that 10101001 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10011011 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10110111 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10000001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 101: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1051Page: 1 Name:

1051

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -116,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -42,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -92,what is this number's binary representation in 8-bit two's complement?

Page 102: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1051Page: 2 Name:

1051

e. (5 pts) Given that 11000001 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11001100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10110111 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11110010 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 103: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1052Page: 1 Name:

1052

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -32,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -23,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -93,what is this number's binary representation in 8-bit two's complement?

Page 104: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1052Page: 2 Name:

1052

e. (5 pts) Given that 11010100 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11000011 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10010111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 105: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1053Page: 1 Name:

1053

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -66,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -45,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -68,what is this number's binary representation in 8-bit two's complement?

Page 106: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1053Page: 2 Name:

1053

e. (5 pts) Given that 10001011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10011110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11011110 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11010010 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 107: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1054Page: 1 Name:

1054

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -91,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -108,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -16,what is this number's binary representation in 8-bit two's complement?

Page 108: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1054Page: 2 Name:

1054

e. (5 pts) Given that 11100110 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10110101 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10001011 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10100010 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 109: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1055Page: 1 Name:

1055

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -125,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -1,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -118,what is this number's binary representation in 8-bit two's complement?

Page 110: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1055Page: 2 Name:

1055

e. (5 pts) Given that 10011101 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11011000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10100111 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11011101 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 111: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1056Page: 1 Name:

1056

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -119,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -36,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -72,what is this number's binary representation in 8-bit two's complement?

Page 112: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1056Page: 2 Name:

1056

e. (5 pts) Given that 10010000 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11100100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11010110 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10111010 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 113: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1057Page: 1 Name:

1057

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -26,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -58,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -47,what is this number's binary representation in 8-bit two's complement?

Page 114: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1057Page: 2 Name:

1057

e. (5 pts) Given that 11000111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10000111 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11001010 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10010001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 115: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1058Page: 1 Name:

1058

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -51,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -121,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -123,what is this number's binary representation in 8-bit two's complement?

Page 116: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1058Page: 2 Name:

1058

e. (5 pts) Given that 10100010 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10011110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11110110 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11100001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 117: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1059Page: 1 Name:

1059

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -85,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -15,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -98,what is this number's binary representation in 8-bit two's complement?

Page 118: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1059Page: 2 Name:

1059

e. (5 pts) Given that 11011001 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11000001 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10010010 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10011100 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 119: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1060Page: 1 Name:

1060

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -1,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -123,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -99,what is this number's binary representation in 8-bit two's complement?

Page 120: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1060Page: 2 Name:

1060

e. (5 pts) Given that 11101100 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11110000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11000001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11111101 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 121: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1061Page: 1 Name:

1061

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -36,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -17,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -73,what is this number's binary representation in 8-bit two's complement?

Page 122: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1061Page: 2 Name:

1061

e. (5 pts) Given that 10100011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10010010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10111001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11111100 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 123: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1062Page: 1 Name:

1062

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -60,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -80,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -22,what is this number's binary representation in 8-bit two's complement?

Page 124: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1062Page: 2 Name:

1062

e. (5 pts) Given that 11111110 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10101010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11100110 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11001100 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 125: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1063Page: 1 Name:

1063

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -95,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -101,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -124,what is this number's binary representation in 8-bit two's complement?

Page 126: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1063Page: 2 Name:

1063

e. (5 pts) Given that 10110101 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11001101 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10000001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10000110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 127: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1064Page: 1 Name:

1064

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -11,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -125,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -56,what is this number's binary representation in 8-bit two's complement?

Page 128: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1064Page: 2 Name:

1064

e. (5 pts) Given that 11111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10001101 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10101011 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10111111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 129: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1065Page: 1 Name:

1065

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -45,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -104,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -99,what is this number's binary representation in 8-bit two's complement?

Page 130: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1065Page: 2 Name:

1065

e. (5 pts) Given that 11111111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10011110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10101001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11100110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 131: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1066Page: 1 Name:

1066

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -70,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -38,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -48,what is this number's binary representation in 8-bit two's complement?

Page 132: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1066Page: 2 Name:

1066

e. (5 pts) Given that 10110101 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11010101 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10110110 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10011110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 133: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1067Page: 1 Name:

1067

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -105,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -60,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -22,what is this number's binary representation in 8-bit two's complement?

Page 134: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1067Page: 2 Name:

1067

e. (5 pts) Given that 10010001 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11011000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11110001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11101111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 135: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1068Page: 1 Name:

1068

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -21,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -41,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -23,what is this number's binary representation in 8-bit two's complement?

Page 136: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1068Page: 2 Name:

1068

e. (5 pts) Given that 10100100 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10000111 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11111100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10010110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 137: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1069Page: 1 Name:

1069

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -55,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -62,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -125,what is this number's binary representation in 8-bit two's complement?

Page 138: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1069Page: 2 Name:

1069

e. (5 pts) Given that 11011011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10101010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10011000 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11010001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 139: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1070Page: 1 Name:

1070

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -80,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -125,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -74,what is this number's binary representation in 8-bit two's complement?

Page 140: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1070Page: 2 Name:

1070

e. (5 pts) Given that 11000001 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11000100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10100001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11100001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 141: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1071Page: 1 Name:

1071

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -114,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -19,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -48,what is this number's binary representation in 8-bit two's complement?

Page 142: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1071Page: 2 Name:

1071

e. (5 pts) Given that 11100100 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11100000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11011011 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10110001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 143: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1072Page: 1 Name:

1072

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -80,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -73,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -96,what is this number's binary representation in 8-bit two's complement?

Page 144: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1072Page: 2 Name:

1072

e. (5 pts) Given that 10110101 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11110000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10101100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10110001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 145: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1073Page: 1 Name:

1073

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -115,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -95,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -70,what is this number's binary representation in 8-bit two's complement?

Page 146: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1073Page: 2 Name:

1073

e. (5 pts) Given that 11010111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11011000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10001100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11100111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 147: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1074Page: 1 Name:

1074

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -12,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -30,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -19,what is this number's binary representation in 8-bit two's complement?

Page 148: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1074Page: 2 Name:

1074

e. (5 pts) Given that 10110010 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11101111 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10111000 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10110111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 149: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1075Page: 1 Name:

1075

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -46,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -51,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -121,what is this number's binary representation in 8-bit two's complement?

Page 150: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1075Page: 2 Name:

1075

e. (5 pts) Given that 11101001 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10010010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11010100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11110001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 151: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1076Page: 1 Name:

1076

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -90,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -32,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -122,what is this number's binary representation in 8-bit two's complement?

Page 152: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1076Page: 2 Name:

1076

e. (5 pts) Given that 11111100 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11000001 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11011111 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10010111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 153: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1077Page: 1 Name:

1077

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -125,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -54,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -97,what is this number's binary representation in 8-bit two's complement?

Page 154: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1077Page: 2 Name:

1077

e. (5 pts) Given that 10110011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11100100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11010001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 155: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1078Page: 1 Name:

1078

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -21,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -116,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -45,what is this number's binary representation in 8-bit two's complement?

Page 156: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1078Page: 2 Name:

1078

e. (5 pts) Given that 10001110 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10101000 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10100001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 157: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1079Page: 1 Name:

1079

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -56,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -10,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -19,what is this number's binary representation in 8-bit two's complement?

Page 158: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1079Page: 2 Name:

1079

e. (5 pts) Given that 11000101 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10011110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11000100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11011100 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 159: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1080Page: 1 Name:

1080

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -100,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -119,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -20,what is this number's binary representation in 8-bit two's complement?

Page 160: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1080Page: 2 Name:

1080

e. (5 pts) Given that 11011000 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11001100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11001111 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10000001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 161: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1081Page: 1 Name:

1081

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -6,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -12,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -123,what is this number's binary representation in 8-bit two's complement?

Page 162: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1081Page: 2 Name:

1081

e. (5 pts) Given that 10001111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11101111 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11101011 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10111100 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 163: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1082Page: 1 Name:

1082

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -31,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -75,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -71,what is this number's binary representation in 8-bit two's complement?

Page 164: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1082Page: 2 Name:

1082

e. (5 pts) Given that 11101010 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10000111 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10010111 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10001100 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 165: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1083Page: 1 Name:

1083

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -66,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -97,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -46,what is this number's binary representation in 8-bit two's complement?

Page 166: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1083Page: 2 Name:

1083

e. (5 pts) Given that 10100001 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10101010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10110011 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11000111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 167: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1084Page: 1 Name:

1084

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -110,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -77,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -46,what is this number's binary representation in 8-bit two's complement?

Page 168: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1084Page: 2 Name:

1084

e. (5 pts) Given that 10110100 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11011000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10111110 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11101100 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 169: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1085Page: 1 Name:

1085

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -16,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -99,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -21,what is this number's binary representation in 8-bit two's complement?

Page 170: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1085Page: 2 Name:

1085

e. (5 pts) Given that 11111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11011010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10100110 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11001001 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 171: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1086Page: 1 Name:

1086

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -41,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -34,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -97,what is this number's binary representation in 8-bit two's complement?

Page 172: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1086Page: 2 Name:

1086

e. (5 pts) Given that 11000110 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10010010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10000111 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11110110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 173: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1087Page: 1 Name:

1087

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -75,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -56,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -72,what is this number's binary representation in 8-bit two's complement?

Page 174: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1087Page: 2 Name:

1087

e. (5 pts) Given that 11111101 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10100010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10110001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10100111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 175: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1088Page: 1 Name:

1088

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -69,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -91,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -26,what is this number's binary representation in 8-bit two's complement?

Page 176: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1088Page: 2 Name:

1088

e. (5 pts) Given that 11110000 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11000001 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10101010 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10101011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 177: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1089Page: 1 Name:

1089

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -104,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -112,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -128,what is this number's binary representation in 8-bit two's complement?

Page 178: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1089Page: 2 Name:

1089

e. (5 pts) Given that 10100111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11100100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11000101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11100101 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 179: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1090Page: 1 Name:

1090

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -1,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -47,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -77,what is this number's binary representation in 8-bit two's complement?

Page 180: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1090Page: 2 Name:

1090

e. (5 pts) Given that 10000010 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11110010 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10110110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 181: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1091Page: 1 Name:

1091

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -35,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -69,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -51,what is this number's binary representation in 8-bit two's complement?

Page 182: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1091Page: 2 Name:

1091

e. (5 pts) Given that 10111001 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10011110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10001110 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11110000 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 183: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1092Page: 1 Name:

1092

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -79,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -50,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -52,what is this number's binary representation in 8-bit two's complement?

Page 184: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1092Page: 2 Name:

1092

e. (5 pts) Given that 11001101 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10011001 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10010101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10010000 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 185: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1093Page: 1 Name:

1093

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -114,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -71,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -26,what is this number's binary representation in 8-bit two's complement?

Page 186: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1093Page: 2 Name:

1093

e. (5 pts) Given that 10000011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11110000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10110101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11010000 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 187: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1094Page: 1 Name:

1094

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -10,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -6,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -103,what is this number's binary representation in 8-bit two's complement?

Page 188: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1094Page: 2 Name:

1094

e. (5 pts) Given that 11011110 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10000111 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11100001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10100000 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 189: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1095Page: 1 Name:

1095

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -45,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -28,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -77,what is this number's binary representation in 8-bit two's complement?

Page 190: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1095Page: 2 Name:

1095

e. (5 pts) Given that 10010101 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10101010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11111101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11011011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 191: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1096Page: 1 Name:

1096

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -81,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -89,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -8,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -78,what is this number's binary representation in 8-bit two's complement?

Page 192: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1096Page: 2 Name:

1096

e. (5 pts) Given that 10101000 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11011001 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10001001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10000000 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 193: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1097Page: 1 Name:

1097

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -81,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -123,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -30,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -53,what is this number's binary representation in 8-bit two's complement?

Page 194: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1097Page: 2 Name:

1097

e. (5 pts) Given that 11011111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11111100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10100100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 195: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1098Page: 1 Name:

1098

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -20,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -93,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -1,what is this number's binary representation in 8-bit two's complement?

Page 196: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1098Page: 2 Name:

1098

e. (5 pts) Given that 10111010 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10010011 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11010001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10001011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 197: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1099Page: 1 Name:

1099

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -54,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -115,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -104,what is this number's binary representation in 8-bit two's complement?

Page 198: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1099Page: 2 Name:

1099

e. (5 pts) Given that 11110001 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10110110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11101101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11000101 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 199: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1100Page: 1 Name:

1100

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -81,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -99,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -95,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -104,what is this number's binary representation in 8-bit two's complement?

Page 200: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1100Page: 2 Name:

1100

e. (5 pts) Given that 10000100 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11100100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11111000 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11101011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 201: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1101Page: 1 Name:

1101

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -81,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -5,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -117,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -79,what is this number's binary representation in 8-bit two's complement?

Page 202: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1101Page: 2 Name:

1101

e. (5 pts) Given that 10111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10000111 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10010100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10100101 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 203: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1102Page: 1 Name:

1102

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -81,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -30,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -52,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -27,what is this number's binary representation in 8-bit two's complement?

Page 204: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1102Page: 2 Name:

1102

e. (5 pts) Given that 10010110 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10011110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11000000 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11110101 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 205: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1103Page: 1 Name:

1103

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -81,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -64,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -73,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -2,what is this number's binary representation in 8-bit two's complement?

Page 206: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1103Page: 2 Name:

1103

e. (5 pts) Given that 11001101 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11000001 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11011100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10110000 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 207: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1104Page: 1 Name:

1104

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -30,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -127,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -49,what is this number's binary representation in 8-bit two's complement?

Page 208: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1104Page: 2 Name:

1104

e. (5 pts) Given that 10000000 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10010011 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11101100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11000100 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 209: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1105Page: 1 Name:

1105

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -65,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -21,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -24,what is this number's binary representation in 8-bit two's complement?

Page 210: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1105Page: 2 Name:

1105

e. (5 pts) Given that 10110111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10110101 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10001000 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 211: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1106Page: 1 Name:

1106

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -90,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -84,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -100,what is this number's binary representation in 8-bit two's complement?

Page 212: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1106Page: 2 Name:

1106

e. (5 pts) Given that 10010010 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11001101 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10110100 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10001011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 213: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1107Page: 1 Name:

1107

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -124,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -106,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -75,what is this number's binary representation in 8-bit two's complement?

Page 214: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1107Page: 2 Name:

1107

e. (5 pts) Given that 11001001 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11110000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11010000 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11000110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 215: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1108Page: 1 Name:

1108

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -40,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -86,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -75,what is this number's binary representation in 8-bit two's complement?

Page 216: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1108Page: 2 Name:

1108

e. (5 pts) Given that 11011100 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10011110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11011011 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11101011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 217: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1109Page: 1 Name:

1109

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -75,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -108,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -50,what is this number's binary representation in 8-bit two's complement?

Page 218: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1109Page: 2 Name:

1109

e. (5 pts) Given that 10010011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11000001 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11110111 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10100110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 219: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1110Page: 1 Name:

1110

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -99,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -43,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -126,what is this number's binary representation in 8-bit two's complement?

Page 220: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1110Page: 2 Name:

1110

e. (5 pts) Given that 11101110 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11011000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10100011 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11110110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 221: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1111Page: 1 Name:

1111

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -6,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -65,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -101,what is this number's binary representation in 8-bit two's complement?

Page 222: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1111Page: 2 Name:

1111

e. (5 pts) Given that 10100101 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10110001 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10110110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 223: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1112Page: 1 Name:

1112

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -50,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -45,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -101,what is this number's binary representation in 8-bit two's complement?

Page 224: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1112Page: 2 Name:

1112

e. (5 pts) Given that 10111000 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10101010 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11001011 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11010110 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 225: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1113Page: 1 Name:

1113

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -84,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -67,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -76,what is this number's binary representation in 8-bit two's complement?

Page 226: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1113Page: 2 Name:

1113

e. (5 pts) Given that 11101111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11001101 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11100111 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10010000 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 227: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1114Page: 1 Name:

1114

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -109,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -2,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -24,what is this number's binary representation in 8-bit two's complement?

Page 228: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1114Page: 2 Name:

1114

e. (5 pts) Given that 11001010 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11100100 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11100000 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10101000 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 229: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1115Page: 1 Name:

1115

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -16,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -23,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -127,what is this number's binary representation in 8-bit two's complement?

Page 230: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1115Page: 2 Name:

1115

e. (5 pts) Given that 10000111 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10101111 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10011011 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11111000 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 231: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1116Page: 1 Name:

1116

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -60,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -4,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -128,what is this number's binary representation in 8-bit two's complement?

Page 232: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1116Page: 2 Name:

1116

e. (5 pts) Given that 10010100 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10110110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10111010 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11000000 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 233: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1117Page: 1 Name:

1117

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -94,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -26,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -102,what is this number's binary representation in 8-bit two's complement?

Page 234: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1117Page: 2 Name:

1117

e. (5 pts) Given that 11001011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11011001 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 11010110 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 235: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1118Page: 1 Name:

1118

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -119,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -89,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -51,what is this number's binary representation in 8-bit two's complement?

Page 236: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1118Page: 2 Name:

1118

e. (5 pts) Given that 10100110 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 11110000 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10000010 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11001011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 237: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1119Page: 1 Name:

1119

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -82,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -25,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -110,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -35,what is this number's binary representation in 8-bit two's complement?

Page 238: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1119Page: 2 Name:

1119

e. (5 pts) Given that 10010011 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10011110 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10000110 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 10111011 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50

Page 239: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

1 Exam #1120Page: 1 Name:

1120

CS32—In­class assignment—F15, Phill Conrad, UC Santa Barbara— Monday,11/23/2015, 11am­12:15pm

Please write your name aboveYou are permitted to get help from others on this assignment.It must be completed and turned in in this class period.You may not turn in a copy for another student not present—that would be a most seriousbreach of academic honesty.

1. (10 pts) Fill in your name in the space above, legibly.

2. For these questions, assume 8-bit two's complement representation of negative integers. The left-most bit is the signbit, with 1 representing negative numbers, and 0 representing positive numbers.

a. (5 pts) Given the decimal number -81,what is this number's binary representation in 8-bit two's complement?

b. (5 pts) Given the decimal number -19,what is this number's binary representation in 8-bit two's complement?

c. (5 pts) Given the decimal number -17,what is this number's binary representation in 8-bit two's complement?

d. (5 pts) Given the decimal number -107,what is this number's binary representation in 8-bit two's complement?

Page 240: CS32—Inclass assignment—F15, Phill Conrad, UC …pconrad/cs32/15F/pdf/cs32_F15_IC00.pdf · CS32—Inclass assignment—F15, Phill Conrad, UC Santa Barbara— Monday, You are permitted

2 Exam #1120Page: 2 Name:

1120

e. (5 pts) Given that 11010000 is the 8-bit two's complement representation of a number,what is that number in base ten?

f. (5 pts) Given that 10011111 is the 8-bit two's complement representation of a number,what is that number in base ten?

g. (5 pts) Given that 10100101 is the 8-bit two's complement representation of a number,what is that number in base ten?

h. (5 pts) Given that 11111111 is the 8-bit two's complement representation of a number,what is that number in base ten?

End of Examtotal points=50