2-Data Representation
2-Data Representation
1. 3710 has 0010 0101 in signed magnitude notation. Find the signed magnitude of –
3710?
2. Using the signed magnitude notation find the 8-bit binary representation of the
decimal value 2410 and -2410.
4. Fill in the empty slots in the table by converting numbers into different
representations. All numbers are 8 bits in length. Use 2’s complement
representation in binary and hexadecimal numbers.
Binary Hexadecimal Unsigned Decimal Signed Decimal
0010 0001 33
6F
1010 0100
-25
6. Using 8-bit binary sequence notation, find the unsigned, signed magnitude and
excess notation of the decimal value 1110 ?
7. Determine the decimal value represented by 10001011 in each of the following four
systems.
1. Unsigned notation?
2. Signed magnitude notation?
3. Excess notation?
4. Two’s complements?
11. Find the unsigned fixed-point binary representation of the decimal number 128.125.
14. Convert the following 32bit floating point hexadecimal number to its decimal value
3EA00000 with IEEE 745 standard: Sign (1bit), Exponent (8bit), Mantissa (23bit)
15. Write down the bit pattern to represent -1.5625 x 101 with IEEE 745 standard: Sign
(1bit), Exponent (8bit), Mantissa (23bit)
16. Do the following calculations below in single precision floating point representation.
Show the floating-point binary values for the operands, show the result of the add or
subtract, then show the final normalized binary representation.
(1) 0.5 + 0.3125;
(2) 12 – 3.875.
17. Convert the ASCII string “9.75” to its hexadecimal representation. Only represent the
characters between the quotation marks and assume it is a null terminated string.
19. Assume a color display using 8 bits for each of the primary colors (red, green, blue)
per pixel and a frame size of 1280 × 1024.
a. What is the minimum size in bytes of the frame buff er to store a frame?
b. How long would it take, at a minimum, for the frame to be sent over a 100 Mbit/s
network?
20. Given the two 16-bit numbers expressed in hexadecimal representation: xABCD and
xFEED, evaluate the following expression. Give your answer in hexadecimal(base16).
xABCD AND (NOT(xFEED)