0% found this document useful (0 votes)
4 views

lab 2

The document provides a comprehensive guide on converting numbers between decimal, binary, octal, and hexadecimal systems. It includes examples of conversions, binary addition, multiplication, and subtraction. The document serves as a reference for understanding number system conversions and basic binary arithmetic.
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)
4 views

lab 2

The document provides a comprehensive guide on converting numbers between decimal, binary, octal, and hexadecimal systems. It includes examples of conversions, binary addition, multiplication, and subtraction. The document serves as a reference for understanding number system conversions and basic binary arithmetic.
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/ 8

1.

Convert decimal numbers to binary

1. 123₁₀ = 1111011₂

2. 160₁₀ = 10100000₂

3. 183₁₀ = 10110111₂

4. 128₁₀ = 10000000₂

5. 157₁₀ = 10011101₂

6. 171₁₀ = 10101011₂

7. 176₁₀ = 10110000₂

8. 145₁₀ = 10010001₂

9. 188₁₀ = 10111100₂

10. 180₁₀ = 10110100₂

11. 147₁₀ = 10010011₂

12. 321₁₀ = 101000001₂

13. 250₁₀ = 11111010₂

14. 132₁₀ = 10000100₂

15. 135₁₀ = 10000111₂

16. 178₁₀ = 10110010₂

17. 178₁₀ = 10110010₂

18. 100₁₀ = 1100100₂


2. Convert octal numbers to binary

1. 145₈ = 001 100 101₂ = 1100101₂

2. 365₈ = 011 110 101₂ = 11110101₂

3. 173₈ = 001 111 011₂ = 1111011₂

4. 321₈ = 011 010 001₂ = 11010001₂

5. 165₂₈ = 001 110 101₂ = 1110101₂

6. 256₈ = 010 101 110₂ = 10101110₂

7. 415₈ = 100 001 101₂ = 100001101₂

8. 213₈ = 010 001 011₂ = 10001011₂

9. 321₈ = 011 010 001₂ = 11010001₂

10. 250₈ = 010 101 000₂ = 10101000₂

11. 135₈ = 001 011 101₂ = 1011101₂

12. 356₈ = 011 101 110₂ = 11101110₂

13. 178₈ = 001 111 100₂ = 1111100₂

14. 415₈ = 100 001 101₂ = 100001101₂

15. 132₈ = 001 011 010₂ = 1011010₂

16. 356₈ = 011 101 110₂ = 11101110₂

3. Convert hexadecimal numbers to octal

1. 4AB₁₆ = 4 1010 1011₂ → 452₈


2. 36A₁₆ = 3 0110 1010₂ → 352₈

3. E5D₁₆ = 1110 0101 1101₂ → 16435₈

4. 7A9₁₆ = 0111 1010 1001₂ → 7521₈

5. 8F2₁₆ = 1000 1111 0010₂ → 10742₈

6. DE3₂₁₆ = 1101 1110 0011₂ → 15703₈

7. 1AF₁₆ = 0001 1010 1111₂ → 1277₈

8. 3FF₁₆ = 0011 1111 1111₂ → 3777₈

9. 25B₁₆ = 0010 0101 1011₂ → 2253₈

10. 48FD₁₆ = 0100 1000 1111 1101₂ → 11077₈

4. Perform the binary addition and multiplication

1. 110 + 0110 = 1000₂


101 * 11 = 1111₂

2. 1101 + 1011 = 11000₂


111 * 11 = 10001₂

3. 1011 + 1101 = 11000₂


101 * 101 = 11001₂

4. 1110 + 1100 = 11010₂


101 * 101 = 11001₂

5. 1001 + 0110 = 1111₂


11 * 11 = 1001₂

6. 1010 + 0110 = 10000₂


101 * 101 = 11001₂

7. 1101 + 1001 = 10110₂


111 * 11 = 10001₂

8. 1010 + 1101 = 10111₂


101 * 101 = 11001₂

9. 1101 + 0110 = 10011₂


111 * 11 = 10001₂

10. 1010 + 1011 = 10101₂


101 * 101 = 11001₂

11. 1001 + 0111 = 10000₂


101 * 101 = 11001₂
12. 1100 + 1011 = 10111₂
111 * 101 = 11111₂

13. 1011 + 1001 = 10100₂


101 * 11 = 111₁₂

14. 1010 + 0111 = 10001₂


101 * 101 = 11001₂

15. 1101 + 1010 = 10111₂


101 * 101 = 11001₂

16. 1011 + 1001 = 10100₂


11 * 101 = 111₁₂

17. 1100 + 1011 = 10111₂


101 * 101 = 11001₂

18. 1101 + 1010 = 10111₂


110 * 11 = 10110₂

1. Convert decimal numbers to binary

1. 123₁₀ = 1111011₂

2. 160₁₀ = 10100000₂

3. 183₁₀ = 10110111₂

4. 128₁₀ = 10000000₂

5. 157₁₀ = 10011101₂

6. 171₁₀ = 10101011₂

7. 176₁₀ = 10110000₂

8. 145₁₀ = 10010001₂

9. 188₁₀ = 10111100₂

10. 180₁₀ = 10110100₂

11. 147₁₀ = 10010011₂

12. 321₁₀ = 101000001₂


13. 250₁₀ = 11111010₂

14. 132₁₀ = 10000100₂

15. 135₁₀ = 10000111₂

16. 178₁₀ = 10110010₂

17. 178₁₀ = 10110010₂

18. 100₁₀ = 1100100₂

2. Convert octal numbers to binary

1. 145₈ = 001 100 101₂ = 1100101₂

2. 365₈ = 011 110 101₂ = 11110101₂

3. 173₈ = 001 111 011₂ = 1111011₂

4. 321₈ = 011 010 001₂ = 11010001₂

5. 165₂₈ = 001 110 101₂ = 1110101₂

6. 256₈ = 010 101 110₂ = 10101110₂

7. 415₈ = 100 001 101₂ = 100001101₂

8. 213₈ = 010 001 011₂ = 10001011₂

9. 321₈ = 011 010 001₂ = 11010001₂

10. 250₈ = 010 101 000₂ = 10101000₂

11. 135₈ = 001 011 101₂ = 1011101₂

12. 356₈ = 011 101 110₂ = 11101110₂

13. 178₈ = 001 111 100₂ = 1111100₂

14. 415₈ = 100 001 101₂ = 100001101₂

15. 132₈ = 001 011 010₂ = 1011010₂

16. 356₈ = 011 101 110₂ = 11101110₂

3. Convert hexadecimal numbers to octal

1. 4AB₁₆ = 4 1010 1011₂ → 452₈

2. 36A₁₆ = 3 0110 1010₂ → 352₈

3. E5D₁₆ = 1110 0101 1101₂ → 16435₈


4. 7A9₁₆ = 0111 1010 1001₂ → 7521₈

5. 8F2₁₆ = 1000 1111 0010₂ → 10742₈

6. DE3₂₁₆ = 1101 1110 0011₂ → 15703₈

7. 1AF₁₆ = 0001 1010 1111₂ → 1277₈

8. 3FF₁₆ = 0011 1111 1111₂ → 3777₈

9. 25B₁₆ = 0010 0101 1011₂ → 2253₈

10. 48FD₁₆ = 0100 1000 1111 1101₂ → 11077₈

4. Perform the binary addition and multiplication

1. 110 + 0110 = 1000₂


101 * 11 = 1111₂

2. 1101 + 1011 = 11000₂


111 * 11 = 10001₂

3. 1011 + 1101 = 11000₂


101 * 101 = 11001₂

4. 1110 + 1100 = 11010₂


101 * 101 = 11001₂

5. 1001 + 0110 = 1111₂


11 * 11 = 1001₂

6. 1010 + 0110 = 10000₂


101 * 101 = 11001₂

7. 1101 + 1001 = 10110₂


111 * 11 = 10001₂

8. 1010 + 1101 = 10111₂


101 * 101 = 11001₂

9. 1101 + 0110 = 10011₂


111 * 11 = 10001₂

10. 1010 + 1011 = 10101₂


101 * 101 = 11001₂

11. 1001 + 0111 = 10000₂


101 * 101 = 11001₂

12. 1100 + 1011 = 10111₂


111 * 101 = 11111₂
13. 1011 + 1001 = 10100₂
101 * 11 = 111₁₂

14. 1010 + 0111 = 10001₂


101 * 101 = 11001₂

15. 1101 + 1010 = 10111₂


101 * 101 = 11001₂

16. 1011 + 1001 = 10100₂


11 * 101 = 111₁₂

17. 1100 + 1011 = 10111₂


101 * 101 = 11001₂

18. 1101 + 1010 = 10111₂


110 * 11 = 10110₂

5. Perform binary subtraction

1. 11010 - 0101 = 10101₂

2. 10111 - 1001 = 01110₂

3. 11011 - 1010 = 00101₂

4. 11101 - 1010 = 01011₂

5. 11001 - 111 = 10010₂

6. 11010 - 111 = 10011₂

7. 10000 - 1101 = 00111₂

8. 11011 - 1100 = 00011₂

9. 10101 - 1010 = 00011₂

10. 11011 - 1010 = 00101₂

11. 10101 - 111 = 10000₂

12. 11001 - 1100 = 00001₂

13. 11011 - 1110 = 00101₂

14. 10111 - 1010 = 00001₂

15. 11011 - 1010 = 00101₂

16. 10111 - 1001 = 00110₂

17. 10111 - 1010 = 00001₂


18. 11010 - 1011 = 00011₂

You might also like