Computer Science, asked by nmounika327, 1 year ago

TWO'S COMPLEMENT OF THE FOLLOWING HEXADECIMALS:

A)6B4E
B)96D2

A)6B4F 96D3
B)94B2 6B4E
C)E4B7 2D6A
D)E4B6 2D69

Answers

Answered by aditya9835233641
38

Answer:

what do you mean by the question please explain me then I


nmounika327: hi i have online test this question is from cheggindia plzzz answer for this its very urjent
Answered by talasilavijaya
0

Answer:

The 2’s complement of hexadecimals 6B4E and 96D2 are 94B2 and 692E respectively.

Explanation:

  • The complement is used to represent the negative decimal number in digital form.
  • Generally, two types of complements are used: 1’s complement and 2’s complement.
  • The 1's complement of a binary number is obtained by simply inverting all the bits of the number.
  • The 2’s complement of a binary number is the 1’s complement added to 1.
  • Hexadecimal is a numbering system with base 16.
  • In this system, 16 symbols of digit values from 0 to 9, followed by 6 alphabetic characters - A, B, C, D, E and F.
  • To find hexadecimal 2’s complement, subtract the number from FFFF and add 1 to it.

A) Given the hexadecimal 6B4E.

Value of F is 15. Substract the respective number or value of alphabetic character from FFFF.

      \mbox{FFFF}\\\underline{\mbox{6B4E}}\\94B1\\\underline{\mbox{~~~+1}}\\94B2

B)  Given the hexadecimal 96D2.

Following the same procedure.

     \mbox{FFFF}\\\underline{\mbox{96D2}}\\692D\\\underline{\mbox{~~~+1}}\\692E

Therefore, the 2’s complement of hexadecimals 6B4E and 96D2 are 94B2 and 692E respectively.

So, the correct answer is option B, but the second part is wrong.

Similar questions