GATE / CS ARCHIVE

GATE CSE 2000 / QUESTION 1.6

Positive integer in twos-complement representation

Digital Logic · Number Systems & Computer Arithmetic · Full GATE CSE 2000 paper

GATE 2000, Q1.6 1 mark · MCQ
Report issue

Number Systems & Computer Arithmetic

Question 1.6, GATE 2000: Represent positive decimal 43 in the eight-bit two’s-complement options: 01010101,11010101,00101011,10101011.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step through it (3 steps)

Step 1: Decompose 43=32+8+2+1, giving binary 101011.

Step 2: Since the number is positive, two’s complement uses its ordinary binary representation with leading zero sign extension: 00101011.

Thus C.

Original paper, page 1