Computer Science - Computer Fundamentals - Discussion
Discussion Forum : Computer Fundamentals - Section 1 (Q.No. 7)
7.
Which of the following is the 1's complement of 10?
Discussion:
56 comments Page 1 of 6.
Sarveswarudu said:
6 months ago
To find the 1's complement of a binary number, flip all the bits (change 0 to 1 and 1 to 0).
Here's the process for your example:
1. Write 10 in binary:
10 decimal= 1010 binary
2. Flip the bits:
Original: 1010
Flip: 0101
So, the 1's complement of 10 (in binary: 1010) is 0101.
Here's the process for your example:
1. Write 10 in binary:
10 decimal= 1010 binary
2. Flip the bits:
Original: 1010
Flip: 0101
So, the 1's complement of 10 (in binary: 1010) is 0101.
Sachin said:
6 years ago
@Gopal.
For 2's complement, we first find 1's complement and then add 1 in that number.
Eg:
We have a binary number 0111,
2's complement = [1's complememt] + 1 .
1's complement = 1000,
now add 1,
1000
+ 1
===========
1001
===========
For 2's complement, we first find 1's complement and then add 1 in that number.
Eg:
We have a binary number 0111,
2's complement = [1's complememt] + 1 .
1's complement = 1000,
now add 1,
1000
+ 1
===========
1001
===========
(8)
Simi said:
1 decade ago
Rules for 1s complement is that replacing 1 by 0 and 0 by 1, or another method is that subtracting number to be complemented by 11, genarally number of ones is taken depends on the number of digits in the paritular number.
Bharat said:
1 decade ago
First Complement of :
10 is 01, 110 is 001, 000 is 111.
----Binary to Decimal Convert-------------
128 64 32 16 4 2 1 Decimal.
0 0 0 0 0 1 0 = 2.
0 0 0 0 1 1 0 = 4+2 = 6.
Thanks.
10 is 01, 110 is 001, 000 is 111.
----Binary to Decimal Convert-------------
128 64 32 16 4 2 1 Decimal.
0 0 0 0 0 1 0 = 2.
0 0 0 0 1 1 0 = 4+2 = 6.
Thanks.
Sathiya said:
1 decade ago
In One's complement replace the opposite value in the given number.
To allow only 0 or 1 only.
if 0 means to replace 1 and 1 means to replace 0....
Example
the 1's complement of 1010
Ans: 0101
To allow only 0 or 1 only.
if 0 means to replace 1 and 1 means to replace 0....
Example
the 1's complement of 1010
Ans: 0101
Minahajhusen Mansuri said:
9 years ago
In One's complement replace the opposite value in the given number.
To allow only 0 or 1 only.
If 0 means to replace 1 and 1 means to replace 0.
10 binary is 110.
So 1's complement is 001.
To allow only 0 or 1 only.
If 0 means to replace 1 and 1 means to replace 0.
10 binary is 110.
So 1's complement is 001.
SOUMYA said:
1 decade ago
IN ONE'S COMPLEMENT EVERY ZEROS ARE REPLACED BY 1 AND VICE VERSA
EXAMPLE: 100
ANSWER: 011
IN THIS EXAMPLE 1 IS REPLACED BY 0 AND 0 IS REPLACED BY 1
EXAMPLE: 100
ANSWER: 011
IN THIS EXAMPLE 1 IS REPLACED BY 0 AND 0 IS REPLACED BY 1
Mangesh S. Gaikwad said:
1 decade ago
It is very easy to write 1's complement.
Rule for complements is that:1 is replace by 0 & 0 is replace by 1.
For EX.: 101010
Answer: 010101
Rule for complements is that:1 is replace by 0 & 0 is replace by 1.
For EX.: 101010
Answer: 010101
Nayana said:
7 years ago
1's complement :
It is obtained by changing all 1's to 0's and al 0's to 1's.
Example : 0110.
It's 1's complement is 1001.
It is obtained by changing all 1's to 0's and al 0's to 1's.
Example : 0110.
It's 1's complement is 1001.
(2)
Sajal said:
8 years ago
Where is the need of 1's, 9's, 10's complement?
I mean I didn't understand the concept of complements .Please, explain.
I mean I didn't understand the concept of complements .Please, explain.
(1)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers