GATE Computer ScienceHardGATE CS (PYQ pattern)

In a 4-bit ripple-carry adder with no carry-in, for how many of the 256 operand pairs (A, B) is the carry generated at stage 0 (A0 = B0 = 1) propagated all the way through stages 1, 2 and 3 to the carry-out C4?

  1. A. 4
  2. B. 16
  3. C. 8
  4. D. 6

Correct answer: C. 8

Stage 0 generates: A0 = B0 = 1 (1 way). Each of stages 1-3 must propagate, i.e. have Ai ≠ Bi, which has 2 choices per stage. So 1 × 2 × 2 × 2 = 8 pairs.

More Digital Logic questions

Exams that ask this topic