edited by
9,430 views
31 votes
31 votes

In $2's$ complement addition, overflow

  1. is flagged whenever there is carry from sign bit addition
  2. cannot occur when a positive value is added to a negative value
  3. is flagged when the carries from sign bit and previous bit match
  4. None of the above
edited by

3 Answers

Best answer
48 votes
48 votes

(B) is the answer. When a positive value and negative value are added overflow never happens. 

http://sandbox.mc.edu/~bennet/cs110/tc/orules.html

selected by
5 votes
5 votes

 

   1 0 1 0     = -6

   0 1 1 0     = +6


1 0 0 0 0     =  0     


Here we add +ve and -ve no. which generate carry but it is not overflow i.e we can ignore it.

4 votes
4 votes
  1. In 2′s complement addition,carry always doesn’t indicate overflow.

  2. When we will add a positive value (+a) with a negative value(-b). The result will be in between them means -b<= result <= +a. So overflow can not occur. As if we can represent -b and +a in some fixed number of bits then we can also represent any number between them.

      C. In 2′s complement addition, overflow is flagged when the carries from sign bit and previous bit did not match.                 i.e Cn⊕Cn−1=1.

      Answer: B

Answer:

Related questions

34 votes
34 votes
4 answers
2
Kathleen asked Sep 15, 2014
6,734 views
Sign extension is a step in floating point multiplicationsigned $16$ bit integer additionarithmetic left shiftconverting a signed integer from one size to another
28 votes
28 votes
6 answers
3
Kathleen asked Sep 15, 2014
10,102 views
The $2's$ complement representation of the decimal value $-15$ is$1111$$11111$$111111$$10001$
24 votes
24 votes
3 answers
4
Kathleen asked Sep 15, 2014
5,935 views
The decimal value $0.25$is equivalent to the binary value $0.1$is equivalent to the binary value $0.01$is equivalent to the binary value $0.00111$cannot be represented pr...