quiz 1.1 number 2 number 10 00010101 11111111 01111111 convert the following unsigned binary numbers...
TRANSCRIPT
Quiz 1.1
Number2 Number10
000101011111111101111111
Convert the following unsigned binary numbers to their decimal equivalent:
Quiz 1.2
Number10
What is the decimal number represented by the following binary digits?
101112
(unsigned)
(sign magnitude)
(1's complement)
(2's complement)
1. Fill in the 3 boxes using the appropriate data type arithmetic:
2. What data type uses the same arithmetic logic as an unsigned integer?
3. Which data type has the simplest arithmetic logic?
Quiz 1.3
00100110+11101101
Signed-Magnitude 1’s Complement 2’s Complement
00100110+11101101
00100110+11101101
Quiz 1.4
Number10 Binary (2’s complement)
5123-35
Convert the following decimal numbers to their 8-bit, 2’s complement binary number equivalent:
Nam
e___________________
Sectio
n_______
Quiz 1.5 – FP to Decimal
1. What is the decimal equivalent of the following signed, 16-bit (8 bit fraction), fixed point number?
Fractional PartIntegral Part
0000110111101000
2-82-72-62-52-42-32-22-120212223242526-27
=
2. 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
Fractional PartIntegral Part
2-102-92-82-72-62-52-42-32-22-12021222324-25
1. Convert the following decimal number to a 2’s complement, 16-bit (10 bit fraction) fixed point number.
-25.8125 =
2(exponent – 127) (1).Fraction
2. What is the IEEE 754 binary floating point equivalent of the following decimal number?
-37.375 =
HINT: 0.8125 = 1/2 + 1/4 + 1/16)
HINT: 0.375 = 1/4 + 1/8)
Quiz 1.7
00000110 (signed magnitude)
+ 10001101 (signed magnitude)
(signed magnitude)
(1’s complement)
+ 00000010 (1’s complement)
(1’s complement)
(2’s complement)
+ 00100101 (2’s complement)
(2’s complement)
(decimal10)