IAE Academy

GATE 2025 EC Q.23: solution and answer

GATE 2025 · ECQ.23 · 1 mark · MCQ

A 3-input majority logic gate has inputs and . The output of the gate is logic '1' if two or more of the inputs are logic '1'. The output is logic '0' if two or more of the inputs are logic '0'.

Which one of the following options is a Boolean expression of the output ?

  1. (A)

  2. (B)

  3. (C)

  4. (D)

See the question in the paper

Answer and solution

ANSWER

(A) . The majority function is 1 exactly for , i.e. , and that minimises to .

Official answer: ASource: Official answer key, GATE 2025 EC (IIT Roorkee)

  1. Truth table from the definition. exactly when at least two of the three inputs are 1. With the minterm index read as in binary, that happens in rows . So . In every other row at least two inputs are 0, so there.

  2. K-map grouping of the 1s. Minterm 7 () is adjacent to each of the other three 1s. Each pair differs in exactly one variable, and that variable drops out: ( drops), ( drops), ( drops). The three pairs cover every 1 and nothing else, so This is option (A). No complemented literals appear anywhere in this question.

  3. Check (B) at a single-1 input. At : . But only one input is 1, so must be 0. (B) is the odd-parity function (the sum output of a full adder), not the majority function.

  4. Check (C) at the same input. At : , but must be 0. OR needs only one input high.

  5. Check (D) at a two-1 input. At : , but two inputs are 1, so must be 1. AND needs all three inputs high.

  6. Each of (B), (C) and (D) gives the wrong output in at least one row. (A) was derived from the full truth table, so it is correct in all 8 rows. Answer: (A).

KEY IDEA

A 3-input majority function is 1 when at least two inputs are 1, so it is . Each 1 in that set pairs with , so the minimal sum of products is one AND term per pair of inputs: . This is also the carry output of a full adder.

WATCH OUT FOR

Picking because it also comes from the full adder. That expression is the SUM output (odd parity), which is 1 when exactly one input is 1. The majority function is the CARRY output, . Testing any single-1 input such as rules out both XOR and OR at once.

From the GATE 2025 EC paper. Every question of this paper · Download the full paper · All 22 Boolean logic questions, with notes

More Boolean logic questions