Combinational Circuits

Answer & solution
Official answer: C
Both four-input muxes use select bits(A, C), while the final mux selects M1 for B=0 and M2 for B=1. For B=0, evaluating at AC=00, 01, 10, 11 gives 1, 1, 0, 1; for B=1 it gives 1, 1, 0, 0. Therefore(X0,…, X7)=(1, 1, 0, 1, 1, 1, 0, 0), option C.
Teaching detail. The mux address inside each 4:1 block is 2A+C. Thus each Xi is simply the desired output for one combination of A,C, with the block chosen by B. When A=0, the NOT A term forces output 1 irrespective of B,C, giving X0=X1=X4=X5=1. When A=1, the function reduces to (NOT B)C: it is zero for C=0 in both blocks, one only in the B=0,C=1 position. This independently obtains X2=X6=X7=0 and X3=1.



