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

Answered by Alexandru P. Computing tutor

2088 Views

See similar Computing A Level tutors

Related Computing A Level answers

All answers ▸

What is the time complexity of Bubble Sort?


Explain how a stack could be used in the process of evaluating an expression in Reverse Polish notation.


Project Euler Question 3: What is the largest prime factor of the number 600851475143?


Given an ordered array of integers "V" and a integer "Sum", write a function that would return "true" if it finds two numbers in V that add up to Sum, and "false" otherwise.


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo
Cookie Preferences