Report

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