GATE CS 2025 Set 1 | Question 25

Digital Logic › Number System · MSQ · 1 mark · Answer: B, D

  1. Question 25Digital Logicmsq1 mark
    The number can be represented as in 4-bit 2's complement representation. Which of the following is/are CORRECT 2's complement representation(s) of ?
    • A.
      1000 1010 in 8-bits
    • B.
      1111 1010 in 8-bits
      ✓
    • C.
      1000 0000 0000 1010 in 16-bits
    • D.
      1111 1111 1111 1010 in 16-bits
      ✓

    Answer: B, D

    Solution

    Answer: (B) and (D) To widen a 2's complement number, perform sign extension: copy the sign bit (here , since the number is negative) into all the new high-order bits. → - 8-bit: → (B). - 16-bit: → (D). Options (A) and (C) pad with s (or a stray ), which changes the value and is incorrect.

More GATE PYQ on Number System

All GATE CS Digital Logic PYQ →

Attempt GATE CS 2025 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →