JAMIA 2024 — Computer PYQ
JAMIA | Computer | 2024The 2’s complement of 5 is ______
Choose the correct answer:
- A.
1011
(Correct Answer) - B.
0101
- C.
1010
- D.
0011
1011
Explanation
Calculation (8-bit representation)
1. Convert the Decimal number to Binary:
First, we convert the decimal number 5 into its binary equivalent.
2. Find the 1's Complement:
To find the 1's complement, we invert all the bits (change 0 to 1 and 1 to 0).
3. Find the 2's Complement:
The 2's complement is obtained by adding 1 to the 1's complement.
Mathematical Representation
Answer: The 2's complement of 5 is 11111011 (in 8-bit) or 1011 (in 4-bit).
Explanation
Calculation (8-bit representation)
1. Convert the Decimal number to Binary:
First, we convert the decimal number 5 into its binary equivalent.
2. Find the 1's Complement:
To find the 1's complement, we invert all the bits (change 0 to 1 and 1 to 0).
3. Find the 2's Complement:
The 2's complement is obtained by adding 1 to the 1's complement.
Mathematical Representation
Answer: The 2's complement of 5 is 11111011 (in 8-bit) or 1011 (in 4-bit).

