Download presentation
Published byBruce Edwards Modified over 9 years ago
1
Quiz 1.1 Convert the following unsigned binary numbers to their decimal equivalent: Number2 Number10
2
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)
3
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
4
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
5
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? = s exponent fraction 1 8 23 N = -1s 1.fraction 2(exponent – 127)
6
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 = HINT: = 1/2 + 1/4 + 1/16) What is the IEEE 754 binary floating point equivalent of the following decimal number? = 2(exponent – 127) (1).Fraction HINT: = 1/4 + 1/8)
7
Quiz 1.7 00000110 (signed magnitude) + 10001101 (signed magnitude)
(1’s complement) (1’s complement) (2’s complement) (2’s complement) (decimal10)
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.