GATE Computer ScienceVery hardGATE CSE · NIELIT
A 4-bit binary adder adds unsigned operands A, B (0–15) and a carry-in Cin ∈ {0,1}. For how many of the 512 input combinations is the carry-out equal to 1?
- A. 255
- B. 240
- C. 256
- D. 272
Correct answer: C. 256
Carry-out occurs when A+B+Cin ≥ 16: for Cin = 0 there are 120 pairs and for Cin = 1 there are 136 pairs, a total of 256.
More Digital Logic questions
- Every Boolean function of three variables is written as a minimal sum of products (fewest product terms, each term any cube of literals)…
- A Mealy machine reads a serial bit stream and outputs 1 whenever the last 7 bits read are 1101101 (overlapping occurrences allowed)…
- Two flip-flops are connected through combinational logic. The launching flip-flop has clock-to-Q delay between 3 and 5 ns, the logic delay…
- How many Boolean functions of 4 variables are both affine (of the form a1x1 ⊕ a2x2 ⊕ a3x3 ⊕ a4x4 ⊕ c) and self-dual?
- A function of four variables is F(A,B,C,D) = Σm(3,4,5,6,8,9,13,14,15) + d(0), where d denotes a don't-care minterm. How many prime…
- For F(A,B,C,D) = Σm(0,2,3,4,7,8,9,11,14,15) + d(1,6,12), how many essential prime implicants are there?