Quiz 1.1 Convert the following unsigned binary numbers to their decimal equivalent: Number2 Number10 00010101 11111111 01111111
Quiz 1.2 What is the decimal number represented by the following binary digits? Number10 (unsigned) 101112 (sign magnitude) (1's complement) (2's complement)
Quiz 1.3 Fill in the 3 boxes using the appropriate data type arithmetic: What data type uses the same arithmetic logic as an unsigned integer? Which data type has the simplest arithmetic logic? Signed-Magnitude 1’s Complement 2’s Complement 00100110 + 11101101 00100110 + 11101101 00100110 + 11101101
Binary (2’s complement) Quiz 1.4 Convert the following decimal numbers to their 8-bit, 2’s complement binary number equivalent: Name___________________ Section_______ Number10 Binary (2’s complement) 5 123 -35
N = -1s 1.fraction 2(exponent – 127) Quiz 1.5 – FP to Decimal What is the decimal equivalent of the following signed, 16-bit (8 bit fraction), fixed point number? Fractional Part Integral Part 1 2-8 2-7 2-6 2-5 2-4 2-3 2-2 2-1 20 21 22 23 24 25 26 -27 = What is the decimal equivalent of the following 32-bit floating point number? 1 10000011 11000000000000000000000 = s exponent fraction 1 8 23 N = -1s 1.fraction 2(exponent – 127)
Quiz 1.6 – Decimal to FP 1. Convert the following decimal number to a 2’s complement, 16-bit (10 bit fraction) fixed point number. Fractional Part Integral Part 2-10 2-9 2-8 2-7 2-6 2-5 2-4 2-3 2-2 2-1 20 21 22 23 24 -25 -25.8125 = HINT: 0.8125 = 1/2 + 1/4 + 1/16) What is the IEEE 754 binary floating point equivalent of the following decimal number? -37.375 = 2(exponent – 127) (1).Fraction HINT: 0.375 = 1/4 + 1/8)
Quiz 1.7 00000110 (signed magnitude) + 10001101 (signed magnitude) (1’s complement) + 00000010 (1’s complement) (2’s complement) + 00100101 (2’s complement) (decimal10)