Exercises On One's & Two's Complement

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Logic Design

Exercises on 1’s & 2’s Complement

Example 01 : Express 2410 in 8-bit binary one’s complement


form
ANS : 0001 1000C1

Example 02 : Express -3110 in 8-bit binary one’s complement


form
ANS : 1110 0000C1

Example 03 : Express -610 in 8-bit binary one’s complement


form
ANS : 1111 1001C1

Example 04 : Express -6810 in 8-bit binary one’s complement


form
ANS : 1011 1011C1

Example 05 : Express 910 in 8-bit binary one’s complement


form
ANS : 0000 1001C1

Page | 1 By : Mahmoud Osama


Example 06 : Express -9910 in 8-bit binary one’s complement
form
ANS : 1001 1100C1

Example 07 : Express -7310 in 8-bit binary one’s complement


form
ANS : 1011 0110C1

Example 08 : What is the decimal equivalent of the C1


number 1111 0110 ?
ANS : -9

Example 09 : What is the decimal equivalent of the C1


number 1001 0111 ?
ANS : -104

Example 10 : What is the decimal equivalent of the C1


number 0011 0010 ?
ANS : 50

Example 11 : What is the decimal equivalent of the C1


number 1101 1011 ?
ANS : -36

Page | 2 By : Mahmoud Osama


Example 12 : Add 1410 to -1310 using 8-bit binary one’s
complement arithmetic .
ANS : 0000 0001

Example 13 : Add 1310 to -1110 using 8-bit binary one’s


complement arithmetic .
ANS : 0000 0010

Example 14 : Add 7710 to -1210 using 8-bit binary one’s


complement arithmetic .
ANS : 0100 0001

Example 15 : Add -310 to 9910 using 8-bit binary one’s


complement arithmetic .
ANS : 0101 1111

Example 16 : Add -1710 to 5110 using 8-bit binary one’s


complement arithmetic .
ANS : 0010 0010

Example 17 : Add -2710 to 12310 using 8-bit binary one’s


complement arithmetic .
ANS : 0110 0000

Page | 3 By : Mahmoud Osama


Example 18 : Express 2510 in 8-bit binary two’s complement
form
ANS : 0001 1001C2

Example 19 : Express 4010 in 8-bit binary two’s complement


form
ANS : 0101 0000C2

Example 20 : Express -8010 in 8-bit binary two’s complement


form
ANS : 1011 0000C2

Example 21 : Express -6810 in 8-bit binary two’s complement


form
ANS : 1011 1100C2

Example 22 : Express -11110 in 8-bit binary two’s


complement form
ANS : 1001 0001C2

Example 23 : Express -10010 in 8-bit binary two’s


complement form
ANS : 1001 1100C2

Page | 4 By : Mahmoud Osama


Example 24 : Add 2710 to -12610 using 8-bit binary two’s
complement arithmetic .
ANS : -(0110 0011) = -99

Example 25 : Add 310 to -1910 using 8-bit binary two’s


complement arithmetic .
ANS : -(0001 0000) = -16

Example 26 : Add 6610 to -10910 using 8-bit binary two’s


complement arithmetic .
ANS : -(0010 1011) = -43

Example 27 : Add -1010 to 4010 using 8-bit binary two’s


complement arithmetic .
ANS : +(0001 1110) = 30

Example 28 : Add -9510 to 12310 using 8-bit binary two’s


complement arithmetic .
ANS : +(0001 1100) = 28

Example 29 : Add -7310 to 11910 using 8-bit binary two’s


complement arithmetic .
ANS : +(0010 1110) = 46

Page | 5 By : Mahmoud Osama

You might also like