edited by
9,728 views
24 votes
24 votes

The range of integers that can be represented by an $n$ bit $2’s$ complement number system is:

  1. $-2^{n-1} \text{ to } (2^{n-1} -1)$

  2. $-(2^{n-1} -1) \text{ to } (2^{n-1} -1)$

  3. $-2^{n-1} \text{ to } 2^{n-1}$

  4. $-(2^{n-1} +1) \text{ to } (2^{n-1} -1)$

edited by

5 Answers

Best answer
13 votes
13 votes
Total number of distinct numbers that can be represented using $n$ bits $=2^n.$

In case of unsigned numbers these corresponds to numbers from $0$ to $2^n -1.$

In case of signed numbers in $1's$ complement or sign magnitude representation, these corresponds to numbers from $-(2^{n-1}-1)$ to $2^{n-1}-1$ with $2$ separate representations for $0.$

In case of signed numbers in $2's$ complement representation, these corresponds to numbers from $-2^{n-1}$ to $2^{n-1}-1$ with a single representation for $0.$
selected by
25 votes
25 votes

An n-bit two's-complement numeral system can represent every integer in the range −(2n − 1) to +(2n − 1 − 1).

while ones' complement can only represent integers in the range −(2n − 1 − 1) to +(2n − 1 − 1).

A is answer

edited by
Answer:

Related questions

24 votes
24 votes
3 answers
1
gatecse asked Sep 21, 2014
11,564 views
Let $f(x)$ be the continuous probability density function of a random variable $x$, the probability that $a < x \leq b$, is :$f(b-a)$$f(b) - f(a)$$\int\limits_a^b f(x) dx...
35 votes
35 votes
2 answers
2
Kathleen asked Sep 22, 2014
41,891 views
Increasing the RAM of a computer typically improves performance because:Virtual Memory increasesLarger RAMs are fasterFewer page faults occurFewer segmentation faults occ...
20 votes
20 votes
2 answers
3
Kathleen asked Sep 22, 2014
7,311 views
The hexadecimal representation of (657)8 is:$\text{1AF}$$\text{D78}$$\text{D71}$$\text{32F}$
31 votes
31 votes
6 answers
4
Kathleen asked Oct 8, 2014
18,416 views
The number of $1$'s in the binary representation of $(3\ast4096 + 15\ast256 + 5\ast16 + 3)$ are:$8$$9$$10$$12$