Binary of -8 is(A) 10000000(B) 00001000(C) 10001000(D) 11000000
Question
Binary of -8 is(A) 10000000(B) 00001000(C) 10001000(D) 11000000
Solution
The binary representation of a negative number in a computer is typically done using a method called 2's complement. Here's how you can find the binary representation of -8:
-
First, find the binary representation of positive 8. In binary, 8 is represented as 1000.
-
Next, find the 1's complement of this binary number. The 1's complement is found by flipping all the bits (changing 1s to 0s and 0s to 1s). So, the 1's complement of 1000 is 0111.
-
Then, find the 2's complement of the binary number. The 2's complement is found by adding 1 to the least significant bit (rightmost bit) of the 1's complement. So, if we add 1 to 0111, we get 1000.
However, in an 8-bit binary number system, we need to represent -8 with 8 bits. So, we add four more zeros to the left side of the binary number. Therefore, the 8-bit binary representation of -8 is 10001000.
So, the correct answer is (C) 10001000.
Similar Questions
What is the binary equivalent of the decimal number 368?a) 10111000 b) 110110000 c) 111010000 d) 111100000
Given a binary number X 11010101001011101, find the binary representation of X * 8 (X multiplied by 8).
Perform the arithmetic operations ( +42) + ( - 13) in binary using signed-2's complement representation for negative numbers*111110100111000011000001110
Binary 1000 will be the result of which of the following?(A) Binary 1000 - 100(B) Binary 1011 - 1111(C) Binary 1111 - 111(D) Binary 11111 – 1111
Given a binary number X = 11110110101010001111, find the binary representation of the integer part of X / 8 (X divided by 8).
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.