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

T1 - Number Base System

The document discusses number base systems and conversions between different bases. It provides examples of converting between decimal, binary, octal, and hexadecimal. This includes floating point number representations. It also covers signed number representations like sign-magnitude, 1's complement, and 2's complement. Additional questions extend these concepts, with examples of evaluating arithmetic operations in different bases and representations.

Uploaded by

Jamen Singh
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)
169 views2 pages

T1 - Number Base System

The document discusses number base systems and conversions between different bases. It provides examples of converting between decimal, binary, octal, and hexadecimal. This includes floating point number representations. It also covers signed number representations like sign-magnitude, 1's complement, and 2's complement. Additional questions extend these concepts, with examples of evaluating arithmetic operations in different bases and representations.

Uploaded by

Jamen Singh
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

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.148 (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) 100100.112 + 10011.112 (j) 1010001012 – 111112
(k) 5310 - 508

3. Convert all the following numbers to octal:


(a) 83.312510 (b) 10110112 (c) 1011101.112 (d) AB.716
(e) 6758 + 7718 (f) 10758 – 27.38
(g) 1010.12 + 9A.316

4. Convert all the following numbers to hexadecimal:


(a) 1084.687510 (b) 10100012 (c) 101110001.1012 (d) 74.18
(e) 93.716 + 7D.516 (f) 1000116 – 58F16
(g) ABC16 + 10010 (h) 3048 – 11111012

5. Convert the following decimal numbers to binary, then find its 8-bit representation
for sign and magnitude, 1’s and 2’s complement.
(a) –27 (b) –53 (c) –115

6. Evaluate the decimal equivalent of the 8-bit arrangement below


(a) 0011 0100 (b) 1011 1101 (c) 1010 0111 (d) 1100 1010
by using
(i) Sign and Magnitude
(ii) 1’s complement
(iii) 2’s complement

7. 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

8. A computer stores the floating number in 16 bits 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

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


Discrete Mathematics AAQS007-4-1 Number Base System

Answers:
1. (a) 45 (b) 375 (c) 2737 (d) 10.625 (e) 370.1875
(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) 111000.12
(j) 1001001102 (k) 11012
3. (a) 123.248 (b) 1338 (c) 135.68 (d) 253.348 (e) 16668
(f) 1045.58 (g) 244.548
4. (a) 43C.B16 (b) 5116 (c) 171.A16 (d) 3C.216 (e) 110.C16
(f) FA7216 (g) B2016 (h) 4716
5. (a) Binary = –11011, sign & magnitude = 10011011, 1’s complement = 11100100,
2’s complement = 11100101
(b) Binary = –110101, sign & magnitude = 10110101, 1’s complement = 11001010,
2’s complement = 11001011
(c) Binary = –1110011, sign & magnitude = 11110011, 1’s complement = 10001100,
2’s complement = 10001101
6. (a)(i) 52 (ii) 52 (iii) 52
(b)(i) –61 (ii) –66 (iii) –67
(c)(i) –39 (ii) –88 (iii) –89
(d)(i) –74 (ii) –53 (iii) –54
7. (a) 001001002 (b) 000011102 (c) 111100102 (d) 000011102 (e) 110111002
8. (a)(i) 0 100010 100110000 (ii) 1 100001 101000000 (iii) 0 011110 100000000
(b)(i) -48.875 (ii) 0.40625

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