GATE Computer ScienceModerateGATE CSE · NIELIT

A BCD adder adds two decimal digits a, b (each 0–9) and a carry-in cin ∈ {0, 1}. For how many of the 200 input combinations does the plain binary sum exceed 9 (so that +6 correction is needed)?

  1. A. 90
  2. B. 100
  3. C. 110
  4. D. 120

Correct answer: B. 100

cin = 0: pairs with a+b ≥ 10 number 45; cin = 1: pairs with a+b ≥ 9 number 55; total 100.

More Digital Logic questions

Exams that ask this topic