StreakPeaked· Practice

ExamsGATETechnical

The output \(Y\) of a 2-bit comparator is logic 1 whenever the 2-bit input \(A\) is greater than the 2-bit input \(B\). The number of combinations for which the output is logic 1 is

  1. 4
  2. 6
  3. 8
  4. 10

Correct answer: 6

Solution

A 2-bit number can take 4 values: 0, 1, 2, and 3. The number of pairs with \(A>B\) is \(3+2+1+0=6\). Hence the output is 1 for 6 combinations.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →