179k views
3 votes
TWO'S COMPLEMENT OF THE FOLLOWING HEXADECIMALS:
A)6B4E
B)96D2

1 Answer

3 votes

Answer: A) 94B2 B) 692E

Explanation:

A) Hex = 6B4E

Decimal = 27470

Binary = 0110 1011 0100 1110

Step 1:

Take One's complement of binary number:

Write the binary Number :

0110 1011 0100 1110

Reverse all the values (Interchange each 0 with 1 and 1 with 0):

1001 0100 101 1 0001

Step 2:

Take Two’s complement by adding 1 in previously written binary number:

1001 0100 101 1 0001

+1

= 1001 0100 1011 0010 (Two's Complement)

= 94B2

B) Hex = 96D2

Decimal = 38610

Binary = 1001 0110 1101 0010

Step 1:

Take One's complement of binary number:

Write the binary Number :

1001 0110 1101 0010

Reverse all the values (Interchange each 0 with 1 and 1 with 0):

0110 1001 0010 1101

Step 2:

Take Two’s complement by adding 1 in previously written binary number:

0110 1001 0010 1101

+1

= 0110 1001 0010 1110 (Two's Complement)

= 692E

User Dannybrown
by
4.8k points