======================== Midterm Test #1B Answers ======================== - Ian! D. Allen - idallen@idallen.ca - www.idallen.com Test #1B Written Answer Section - Points: 25 (10 of 15%) Note: To help you check your answers, I may give you the sum of the digits in the answer. For example, if the answer is supposed to be 128.9 I may tell you that the "check" sum of digits is 20 (=1+2+8+9). [Points: 1] Express the decimal prefix "giga" as a power of ten: 10**9 [Points: 1] Express the binary prefix "tera" as a power of two: 2**40 [Points: 2] Convert binary 001111111101101101110101100 to hexadecimal: 1fedbac [Points: 2] Convert unsigned octal 277 to decimal: 10111111 -> 191 [Points: 2] Convert hexadecimal EE5E to octal: 167136 [Points: 3] Convert the two's complement representation 16-bit hexadecimal number EE5E to decimal. (Check: the sum of the digits in the answer is 14 decimal): --> 11A1 -> 11A2 -> -4514 [Points: 2] Convert the two's complement representation 16-bit hexadecimal number 11A1 to decimal. (Check: the sum of the digits in the answer is 13 decimal): 4513 [Points: 2] Convert the decimal fraction 0.1875 to binary: 0.0011 [Points: 2] Convert decimal 133 to unsigned 8-bit binary: 10000101 [Points: 3] Convert decimal -122 to two's complement 8-bit binary: 01111010 -> 10000101 -> 10000110 (134 unsigned) [Points: 5] Convert 64.1875 to IEEE 754 single-precision floating-point and express the result in hexadecimal. (Check: the sum of the digits in the answer is 20 decimal): 42806000