Physics (JEE/NEET)Very hardJEE Main · JEE Advanced

For the logic Y = (A ⊕ B)(C + D) + ABC, the number of the 16 input combinations (A, B, C, D) giving Y = 1 is

  1. A. 9
  2. B. 6
  3. C. 10
  4. D. 8

Correct answer: D. 8

Split by (A, B): when A ≠ B (8 of 16 inputs), Y = C + D, which is 1 for 3 of the 4 (C, D) values, giving 6 inputs. When A = B = 1 the first term vanishes and Y = C, giving 2 inputs (C = 1, D either). When A = B = 0, Y = 0. Total 6 + 2 = 8.

More Semiconductor Electronics questions

Exams that ask this topic