GATE 2025 CS (CS1) – Question 24
Let $X$ be a 3-variable Boolean function that produces output as '1' when at least two of the input variables are '1'. Which of the following statement(s) is/are CORRECT, where $a, b, c, d, e$ are Boolean variables?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (B) $X(a,b,X(a,b,c)) = X(a,b,c)$; (D) $X(a,b,c) = X(a,X(a,b,c),X(a,c,c))$
Explanation
X is the majority function. (A) fails for a=b=1, c=d=e=0 (LHS 1, RHS 0). (C) reduces to X(a,b,X(a,c,d)) = a·c, which fails for a=0, b=c=d=1. (B) and (D) hold for all inputs when checked case by case.