retagged by
454 views
0 votes
0 votes

Consider given below $n$ bit integer data which is expressed in sign $2’s$ complement notation

$K=\left ( a_{n-1} a_{n-2}....a_{1} a_{0} \right )$

The value expression of the $K$ in decimal is

$\left ( A \right )\sum_{i=0}^{n-2}a_{i}\times 2^{i}$

$\left ( B \right )\sum_{i=0}^{n-1}a_{i}\times 2^{i}$

$\left ( C \right )\left ( -2^{n-1} \right )\times a_{n-1}+\sum_{i=0}^{n-2}a_{i}\times 2^{i}$

$\left ( D \right )\left ( -2^{n-1} \right )\times a_{n-1}+\sum_{i=0}^{n-1}a_{i}\times 2^{i}$


I know that range of $2’s$ complement is $-2^{n-1}$ to $+2^{n-1}-1$

but no option getting match with it

right?

 

retagged by

Please log in or register to answer this question.

Related questions

1 votes
1 votes
0 answers
1
Na462 asked Aug 6, 2018
1,054 views
0 votes
0 votes
0 answers
2
2 votes
2 votes
1 answer
3
Meenakshi Sharma asked Oct 29, 2016
2,224 views
what is the min and max range of an 8 bit integer when it is stored ina)sign magnitude formb)1's complement formc)2's complement form
3 votes
3 votes
1 answer
4
Hardik Vagadia asked Dec 30, 2016
2,036 views
Is 2's complement code weighted or unweighted? Why?