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

TD 1

The document contains a series of exercises focused on number base conversions, including decimal to binary, hexadecimal, and octal conversions, as well as conversions from binary and hexadecimal to decimal. It also includes tasks on signed binary format (two's complement) for both integers and real numbers, along with arithmetic operations in various bases. Additionally, it addresses overflow scenarios in signed binary operations and fixed-point number decoding and encoding.

Uploaded by

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

TD 1

The document contains a series of exercises focused on number base conversions, including decimal to binary, hexadecimal, and octal conversions, as well as conversions from binary and hexadecimal to decimal. It also includes tasks on signed binary format (two's complement) for both integers and real numbers, along with arithmetic operations in various bases. Additionally, it addresses overflow scenarios in signed binary operations and fixed-point number decoding and encoding.

Uploaded by

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

TD 1

1. Convert the following decimal numbers to base 2 (binary base):


a. 13 f. 0.125
b. 27 g. 0.25
c. 135 h. 0.35
d. 2016 i. 15.33
e. 10512 j. 135.625

2. Convert the preceding decimal numbers to hexadecimal (base 16) then to octal (base 8).

3. Write the following hexadecimal numbers in base 10.


a. 9A
b. 5F3
c. 110
d. 0.25
e. 1ABC.DE

4. Write the following binary numbers in base 10.


a. 110 f. 0.0011
b. 1101 g. 101.101
c. 11011 h. 10110011
d. 110.11 i. 111111110
e. 0.1101 j. 10011100011

5. For the following integers, represented in signed binary format (2's complement) on 6
bits, give the decimal value:
a. 001111
b. 110001

6. For the following integers, represented in decimal, give the representation in signed
binary format (two's complement) with the minimum number of bits:
a. +35
b. -35

7. For the following real numbers, represented in signed binary format (2's complement),
give the decimal value:
a. 00100101.111
b. 11011011.101

8. For the following real numbers, represented in decimal, give the representation in
signed binary format (two's complement) with the minimum number of bits:
a. +11.5
b. –15.625

Computer Architecture- CS Department 2021-2022


9. All numbers are given in signed binary format. If there is an overflow, specify it and
give the correct result by adding 1 additional bit.
a. 0101 – 1010
b. 0100 + 1010
c. 0011.1 – 1100.1
d. 110.100 + 100.001

10. Write the two numbers -35 and 25 (base 10) in binary, then perform the sum and the
multiplication of these two numbers in binary.

11. In fixed-point, decode the binary number 11.011 then code in binary the real 11.625

12. Perform the following arithmetic operations:


a. (101011)2 + (1011)2
b. (AF5)16 + (10C)16
c. (101011)2 - (11O11)2

Computer Architecture- CS Department 2021-2022

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy