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

Discrete Mathematics AAQS007-4-1 Number Base System: Answers

This document discusses number base systems and conversions between binary, decimal, octal, and hexadecimal. It provides examples of converting numbers between these number bases, as well as performing addition, subtraction, multiplication and division on them. It also covers floating point number representation, two's complement, and signed/unsigned number representations. Additional questions at the end practice these concepts further.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
217 views

Discrete Mathematics AAQS007-4-1 Number Base System: Answers

This document discusses number base systems and conversions between binary, decimal, octal, and hexadecimal. It provides examples of converting numbers between these number bases, as well as performing addition, subtraction, multiplication and division on them. It also covers floating point number representation, two's complement, and signed/unsigned number representations. Additional questions at the end practice these concepts further.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Discrete Mathematics AAQS007-4-1 Number Base System

1. Convert all the following numbers to denary:


(a) 1011012 (b) 5678 (c) AB116 (d) 1010.1012
(e) 562.18 (f) 121.A16 (g) 3124 (h) 23.15

2. Convert all the following numbers to binary:


(a) 1278 (b) 7710 (c) 9916 (d) DA.316
(e) 12.510 (f) 32.678 (g) 43.216 (h) 107.25
(i) 101110102 + 10001012 (j) 1010001012 - 111112
(k) 5310 - 508

3. Convert all the following numbers to octal:


(a) 8310 (b) 10110112 (c) 1011101.112 (d) AB16
(e) 6758 + 7718 (f) 10258 - 7738
(g) 101012 + 9A316

4. Convert all the following numbers to hexadecimal:


(a) 10010 (b) 10100012 (c) 101110001.1012 (d) 7418
(e) 93716 + 7D516 (f) 1000116 – 58F16
(g) ABC16  10010 (h) 3048 – 11111012

5. Using two’s complement in 8-bit register, show how the computer would evaluate the
following:
(a) 25 + 11 (b) 25 – 11 (c) 11 – 25 (d) –11 + 25
(e) –11 – 25

6. A computer stores the floating number in 16 bit where 1 bit for the sign, 6 bits for the
exponent with a biased of +31 and mantissa has a hidden bit.
(a) Show how those floating-point values would be represented in that computer.
(i) 12.75
(ii) –6.5
(iii) 0.75
(b) What is the decimal value of the floating point representation given in each of the
following?
(i) 1100 1001 0000 1110
(ii) 0011 1011 0100 0000

Answers:
1. (a) 45 (b) 375 (c) 2737 (d) 10.625 (e) 370.125
(f) 289.625 (g) 54 (h) 13.2
2. (a) 10101112 (b) 10011012 (c) 100110012 (d) 11011010.00112 (e) 1100.12
(f) 11010.1101112 (g) 1000011.0012 (h) 1101011.012 (i) 111111112
(j) 1001001102(k) 11012
3. (a) 1238 (b) 1338 (c) 135.68 (d) 2538 (e) 16668
(f) 328 (g) 46708
4. (a) 6416 (b) 5116(c) 171.A16 (d) 1E116 (e) 110C16
(f) FA7216 (g) 4317016 (h) 4716
5. (a) 001001002 (b) 000011102 (c) 111100102 (d) 000011102 (e) 110111002
6. (a)(i) 0 100010 100110000 (ii) 1 100001 101000000 (iii) 0 011110 100000000
(b)(i) -48.875 (ii) 0.40625

Diploma Asia Pacific University of Technology & Innovation Page 1 of 2


Discrete Mathematics AAQS007-4-1 Number Base System

Additional Questions:

1. Conduct the conversion below:


(a) 9B0.0F16 to denary
(b) 329.875 to octal
(c) 2124.625 to hexadecimal
(Note: Correct the final answers to 3 decimal places)

2. Evaluate the decimal equivalent of the 8 bit arrangement 111010112 using


(a) Sign-and-magnitude.
(b) 2’s complement.

3. Using two’s complement in 8-bit register, show how the computer would evaluate the
following.
22 – 14

4. What is the value represented in single-precision format below if the bias is 127?
1 1000 0011 110 0010 0000 0000 0000 0000

Answers of Additional Questions:

1. (a) 2480.059 (b) 511.78 (c) 84C.A16


2. (a) -107 (b) -21
3. 000010002
4. -28.25

Diploma Asia Pacific University of Technology & Innovation Page 2 of 2

You might also like