GATE Computer ScienceEasyGATE CS (PYQ pattern)
In an n-bit two's-complement adder, which pair (carry into the MSB, carry out of the MSB) signals signed overflow?
- A. (1, 1) only
- B. (0, 1) only
- C. (0, 0) or (1, 1) — the two carries are equal
- D. (0, 1) or (1, 0) — the two carries differ
Correct answer: D. (0, 1) or (1, 0) — the two carries differ
Overflow = c_in(MSB) ⊕ c_out(MSB). Example: 0111 + 0001 gives carry in 1, out 0; 1000 + 1000 gives carry in 0, out 1. A carry out alone is an unsigned-overflow indicator.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- The logic of a processor takes 48 ns per instruction unpipelined. Pipelining into k stages gives a cycle time of 48/k + 3 ns (latch…
- A branch target buffer (BTB) lets the fetch unit predict taken branches with no bubble when it hits and predicts correctly. Branches are…
- A stack grows downwards in 4-byte units and SP = 0x8000 initially. The instructions PUSH, PUSH, CALL (pushes a 4-byte return address)…
- A Wallace-tree multiplier of 16 × 16 bits must add 16 partial products using layers of 3:2 carry-save adders (each group of 3 rows becomes…
- Instruction frequencies are 0.5, 0.25, 0.125, 0.0625 and 0.0625. What is the minimum average opcode length with a prefix code, and how…
- A cache line holds 8 words. Memory returns the first word 20 cycles after the request and then one word per cycle. Without…