Skip to content
GATEiit

GATE CSE 2017 Session 1 Q19: Overflow condition in 8-bit 2's complement ripple-carry addition

Syllabus topic: Number representation and arithmetic (fixed and floating point)

Question

When two 8-bit numbers A7⋯A0 and B7⋯B0 in 2’s complement representation (with A0 and B0 as the least significant bits) are added using a ripple-carry adder, the sum bits obtained are S7⋯S0 and the carry bits are C7⋯C0. An overflow is said to have occurred if

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation

Answer: C (official GATE 2017 final answer key)

Concept used: Two's complement overflow occurs exactly when two operands of the same sign give a result of the opposite sign.

Concept notes

Loading notes…

First step: Look at the sign bits A7, B7 and S7: write the condition 'both positive but sum negative, or both negative but sum positive'.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on Number representation and arithmetic (fixed and floating point)

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2017 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key