The number -6 can be represented as 1010 in 4-bit 2's complement representation. Which of the following is/are CORRECT 2's complement representation(s) of -6?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2025 Set 1 · Q25
Time
Select all that applyOne or more correct
Solution
Official answer: B) 1111 1010 in 8-bits; D) 1111 1111 1111 1010 in 16-bits
Number Representation and ArithmeticTo extend an -bit 2's complement number to a higher bit-width, sign extension is performed, which copies the most significant bit (the sign bit) into all the new higher-order bit positions.
For the given 4-bit representation of :
The sign bit (MSB) is .
8-bit representation: Replicate the sign bit () for the additional higher-order bits:
Hence, B is correct, while A is incorrect.
16-bit representation: Replicate the sign bit () for the additional higher-order bits:
Hence, D is correct, while C is incorrect.
Therefore, the correct options are B and D.
Try the question first, then check your work.
Examiner trap
Recall how sign extension works when increasing the bit-width of a 2's complement signed integer.
This Number Representation and Arithmetic previous year question is Q25 of the GATE CSE 2025 Set 1 paper. Find more GATE CSE PYQs on Number Representation and Arithmetic in Digital Logic, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Number Representation and Arithmetic PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Number Representation and Arithmetic has 33 GATE CSE PYQs across 20 papers from 2012 to 2026. 3 of them are 1-mark MSQs like this one, and it is the only one in GATE CSE 2025 Set 1.
How GATE tests Number Representation and ArithmeticIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.