======================== Midterm Test #1A Answers ======================== - Ian! D. Allen - idallen@idallen.ca - www.idallen.com Test #1A 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 "tera" as a power of ten: 10**12 [Points: 1] Express the binary prefix "giga" as a power of two: 2**30 [Points: 2] Convert binary 010110010101011110111101111 to hexadecimal: 2cabdef [Points: 2] Convert unsigned octal 377 to decimal: -> 11111111 -> 255 [Points: 2] Convert hexadecimal EEE5h to octal: 167345 [Points: 3] Convert the two's complement representation 16-bit hexadecimal number EEE5h to decimal. (Check: the sum of the digits in the answer is 23 decimal): -> 111A -> 111B -> -4379 [Points: 2] Convert the two's complement representation 16-bit hexadecimal number 111Ah to decimal. (Check: the sum of the digits in the answer is 22 decimal): 4378 [Points: 2] Convert the decimal fraction 0.5625 to binary: 0.1001 [Points: 2] Convert decimal 134 to unsigned 8-bit binary: 10000110 [Points: 3] Convert decimal -121 to two's complement 8-bit binary: 01111001 -> 10000110 -> 10000111 (135 unsigned) [Points: 5] Convert 128.5625 to IEEE 754 single-precision floating-point and express the result in hexadecimal. (Check: the sum of the digits in the answer is 16 decimal): 43009000