0% found this document useful (0 votes)
45 views2 pages

2-Data Representation

Uploaded by

khoipn.23bi14228
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views2 pages

2-Data Representation

Uploaded by

khoipn.23bi14228
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

SUBMIT YOUR ANSWERS WITH YOUR GROUP IN SLACKSLACK

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.

3. Find the signed magnitude of –63 using an 8-bit binary sequence.

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

5. Find 10011001 is an 8-bit binary sequence.


Find the decimal value it represents if it was in unsigned and signed magnitude.
Suppose this representation is excess notation, find the decimal value it
represents?

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?

8. Find the 2's complement of the following binary numbers:


a.0100 1010 C. 1011 0110
b.1001 0000 D. 0111 0000

9. Assuming two’s complement notation, perform the following:


a.11000011 + 00100011
b.01000011 + 00100011
c.11000011 – 00100011
d.01111111 + 01111111
e.11000011 + 11000011
f. 10000011 + 10000011
Assume your answer must also use only eight bits and are in two’s complement
notation. Do all the above operations still work correctly? If not, which ones have
problems, and why?
10. Consider the 8-bit binary bit pattern 10101010. What is its decimal (base ten) value if
the bit pattern is A two’s complement integer?

11. Find the unsigned fixed-point binary representation of the decimal number 128.125.

12. a) Convert 101.101 from unsigned fixed point representation to decimal.


b) Convert 72.375 from decimal to unsigned fixed point binary

13. a) Represent +0.8 in the following floating-point representation:


1-bit sign
4-bit exponent
6-bit normalised mantissa (significand).
b) Convert the value represented back to decimal?
c) Calculate the relative error of the representation?

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.

18. Convert the following binary code into an ASCII string:


0111 0000 0011 0001 0011 0011 0111 0011 0000 0000

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)

You might also like