GATE / CS ARCHIVE

GATE CSE 2013 / QUESTION 4

Eight-bit signed minimum

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

GATE 2013, Q4 1 mark · MCQ
Report issue

Number Systems & Computer Arithmetic

Question 4, GATE 2013: What is the smallest integer representable by an 8-bit two’s-complement number? A−256, B−128, C−127, D0.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

An8-bit two’s-complement integer has range−27 through 27−1, hence minimum−128, B.

The leftmost bit has weight−128 and the remaining seven bits have positive weights 64, 32, 16, 8, 4, 2, 1. To minimize the represented integer, set the negative-weight bit to 1 and all positive-weight bits to 0:10000000 represents−128. The opposite endpoint 01111111 represents 127. Unlike sign-magnitude, two’s complement has one more negative value than positive nonzero values, which explains why−127 is not the minimum.

Original paper, page 2 · Answer key