What is the decimal equivalent of the following sequence of bits, which represents an unsigned binary integer: 1101001. What is the decimal equivalent if the sequence in bits encodes a two’s complement binary integer.

1101001

Unsigned binary number means every bit represents a power of two. The sum of the powers present in the binary representation gives the number in decimal. 

We start from right to left: 120+021+022+123+024+125+1*26= 105

two’s complement binary integer = signed binary integer, in which the leftmost power is multiplied by (-1).

We start from right to left: 120+021+022+123+024+125+(-1)126=- 23

AP

Related Computing A Level answers

All answers ▸

What is the difference between HTML, CSS and JavaScript


Describe two's complement.


Explain how the fetch execute cycle works? Include the specific registers and buses being used


Explain why it is important to check the email address with JavaScript and again when it reaches the server.