GATE CSE 2019 Q18: Z = X − Y in sign-magnitude, n-bit operands: minimum bits for Z
- Digital Logic
- 1 mark
- MCQ
- −1/3 if wrong
Syllabus topic: Number representation and arithmetic (fixed and floating point)
Question
Consider , where X, Y and Z are all in sign-magnitude form. X and Y are each represented in bits. To avoid overflow, the representation of Z would require a minimum of:
Try it: multiple choice: exactly one correct option
Show answer and explanation
Answer: C (official GATE 2019 final answer key)
Concept used: Subtracting two numbers of opposite sign can double the magnitude, which needs one extra magnitude bit.
First step: Take the largest positive X and the most negative Y in -bit sign-magnitude and see how many magnitude bits needs.
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
Source: official GATE 2019 CS question paper and final answer key, organised by IIT Madras. Question paper · Answer key
More Digital Logic PYQs
- 2026 Session 1 · Q21Expressions equivalent to (P̄ + Q) ⊕ (P̄Q)
- 2026 Session 1 · Q22Overflow with 8-bit sign-magnitude operands
- 2026 Session 1 · Q37D flip-flop inputs for a 2-bit saturating up/down counter
- 2026 Session 1 · Q48Minimal SOP forms of Σm(1,2,3,4,5,7,10,12,13,14)
- 2026 Session 2 · Q16Which identity is not a law of Boolean algebra
- 2026 Session 2 · Q28Overflow in 4-bit two's complement additions