GATE / CS ARCHIVE

GATE CSE 2021 SET 1 / QUESTION 42

GATE CSE 2021 Set 1 Q42

Digital Logic · Boolean Algebra & Logic Gates · Full GATE CSE 2021 Set 1 paper

GATE 2021 Set 1, Q42 2 marks · MSQ
Report issue

Boolean Algebra & Logic Gates

Question 42, GATE 2021: Let F=(X+Y+Z)(¬X+Y)(¬Y+Z), where + is OR and adjacency AND. Select expressions equal to ¬F: A (¬X+¬Y+¬Z)(X+¬Y)(Y+¬Z); B X¬Y+¬Z; C (X+¬Z)(¬Y+¬Z); D X¬Y+Y¬Z+¬X¬Y¬Z.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B; C; D

Step through it (14 steps)

If Z=0, the product is (X+Y)(NOT X+Y)(NOT Y)=Y(NOT Y)=0. If Z=1, it is NOT X+Y. Thus F=Z(NOT X+Y) and its complement is NOT Z+X(NOT Y), option B. By (a+b)(c+b)=ac+b, C is the same expression. Direct De Morgan expansion gives X(NOT Y)+Y(NOT Z)+(NOT X)(NOT Y)(NOT Z), exactly D. Option A is false, for example at X=0, Y=1, Z=0: it evaluates to 0 while the complement of F is 1.

Algebraically, (X+Y)(¬X+Y)=Y, so setting Z=0 makes F=Y¬Y=0. Setting Z=1 leaves only ¬X+Y. Hence ¬F=¬Z+X¬Y. Expanding C gives X¬Y+X¬Z+¬Y¬Z+¬Z, which absorbs to B. De Morgan on the original three factors gives D directly. Checking A at (X,Y,Z)=(0,1,0) yields a zero second factor (X+¬Y), whereas F=0 and its complement must be 1; this single assignment rules A out.

Original paper, page 35 · Answer key