GATE Computer ScienceHardGATE CS (PYQ pattern)
A one-digit BCD adder adds digits a, b (0-9) and a carry-in c (0 or 1). Its 4-bit binary adder gives a carry K and sum Z8Z4Z2Z1, and the correction (+6) is applied when K + Z8Z4 + Z8Z2 = 1. Over all 200 valid inputs, in how many cases is the correction triggered by K = 1, and in how many by Z8Z4 + Z8Z2 with K = 0?
- A. 16 and 84
- B. 84 and 16
- C. 18 and 84
- D. 50 and 50
Correct answer: A. 16 and 84
Let s = a + b + c (0-19). The number of (a, b) pairs with a + b = t is t + 1 for t ≤ 9 and 19 − t for t ≥ 9. K = 1 means s ≥ 16: c = 0 needs a + b ≥ 16 (3 + 2 + 1 = 6), c = 1 needs a + b ≥ 15 (10): 16. s from 10 to 15 with K = 0: 100 − 16 = 84 (the total number of corrections is 100).
More Digital Logic questions
- Two 8-input priority encoders receive the same inputs I7..I0. Encoder H gives priority to the highest-numbered asserted input, encoder L…
- An 8-input priority encoder (I7 highest priority) outputs the index y (0 to 7) of the highest asserted input. Among the 255 non-zero input…
- What is the minimum number of 2:1 multiplexers needed to realise the three-input majority function MAJ(a, b, c) = ab + bc + ca if the…
- What is the minimum number of 2:1 multiplexers needed to realise a ⊕ b ⊕ c if the constants 0, 1 and the inputs a, b, c are available but…
- Segment g of a BCD-to-seven-segment decoder (inputs A B C D, A the MSB) is on for the digits 2, 3, 4, 5, 6, 8, 9. A designer forgets that…
- A seven-segment decoder (inputs A B C D, A the MSB; codes 10-15 are don't-cares) shows 9 without its bottom segment, so segment d is on…