Computer Science - Computer Fundamentals - Discussion

Discussion Forum : Computer Fundamentals - Section 1 (Q.No. 31)
31.
The 2's complement of a binary no. is obtained by adding.....to its 1's complement.
1
10
12
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
17 comments Page 1 of 2.

Ashok Arya said:   9 years ago
10101000111 This 1's and 0's binary language which can understand by computer.

It's hard to do operations on this binary numbers. To simplify this we use 1's and 2's compliment. Like if we have to subtract to binary number just find the 1's complement of number and add them together instead of subtracting.(adding binary number is simpler than subtracting).

1's compliment of 111000110010 is = 000111001101("0 converted to 1" and "1 converted to 0");

2's compliment of 111000110010 is = 000111001101 + 1 = 000111001110...
(1)

Schnitz said:   1 decade ago
Complement = change (1 into 0) and (0 into 1).

Ex: 11111 = 00000 and 10101 = 01010.

1's complement is a regular complement, the above explanation.

2's complement is where you will change the last digit into '1' in your complement.

Ex: 11111 = 00001 and 10101 = 01011.

Genu said:   1 decade ago
2's complement= 1's complement + 1.
2's complement of 1101 ?
0010- 1's complement
then add 1 to it
0010
1
----
0011.

Hassan Umar said:   1 decade ago
To get 2s compliment you need to add 1 at the end of your 1s compliment e.g 10110 will change to 10111.

Sayan said:   8 years ago
Why do we need 1's complement and 2's complement? I mean, what are they actually useful for?

Ravn said:   1 year ago
Here, they haven't given any f-number how could we find the f answer? please explain to me.

Nidhi kothari said:   10 years ago
1's complement of 0100 is 1011.

2's complement = 1's complement + 1.

1011.
+ 1.
= 1100.

Gowda said:   1 decade ago
Complement means reverse of the given number also 1 become zero and zero become 1.

Kulvinder said:   1 decade ago
I don't understand these complements can you explain in detail?

GRADY ONESMO said:   9 years ago
I don't understand about 2's complement. Can anyone explain it?


Post your comments here:

Your comments will be displayed after verification.