Similar questions 3 more →
Boolean Algebra & Logic Gates

Answer & solution
Official answer: B
For g, factor Y: X′Y(Z+Z′)+XY=Y(X′+X)=Y. Repeated use of a projection can merely select existing inputs, not synthesize negation. For f, connect the third input to the second: f(X,Y,Y)=X′Y+XY′+Y′=X′Y+Y′=X′+Y′=(XY)′. This constructs NAND without supplying constants; NAND alone realizes NOT and AND and therefore all Boolean functions.
Solution: g=¬XYZ+¬XY¬Z+XY=Y. Compositions of this projection cannot produce all Boolean functions. For f=¬XYZ+X¬Y+¬Y¬Z, substitute Z=Y: f(X, Y, Y)=¬XY+X¬Y+¬Y=¬X+¬Y, NAND. Since NAND alone is functionally complete, f is complete whereas g is not, B.