GATE / CS ARCHIVE

SIMILAR QUESTIONS / DIGITAL LOGIC

Identify a gate from its truth table

2 questions solved the same way, newest first. Back to Digital Logic

How these are solved

Both identify a two-input function by reconstructing its complete truth table, rather than algebraic simplification of a supplied expression.

1 mark · MCQ
Report issue

Boolean Algebra & Logic Gates

Question 6, GATE 2016: A Boolean operator # obeys x#0=x, x#1=NOT x, x#x=0, and x#(NOT x)=1. Identify x#y. Writing ¬ for NOT, concatenation for AND and + for OR, the options are A: x¬y+¬xy. B: x¬y+¬x¬y. C: ¬xy+xy. D: xy+¬x¬y.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

The four truth-table cases specified for # are exactly exclusive OR: different operands give 1 and equal operands give 0. Therefore x#y=x¬y+¬xy, A.

Construct the rows explicitly: 0#0=0, 0#1=1, 1#0=1, 1#1=0. An SOP has a minterm for each output-one row, namely ¬xy and x¬y. These are XOR's two unequal-input cases. Option D would be XNOR, which instead outputs 1 for equal inputs. The complement symbols in the options are essential; replacing them with ordinary variables changes the operator.

Original paper, page 5 · Answer key

1 mark · MCQ
Report issue

Boolean function from truth table

Boolean Algebra & Logic Gates

Question 6, GATE 2012: The truth table
                                                  X    Y     f (X, Y)
                                                  0    0         0
                                                  0    1         0
                                                  1    0         1
                                                  1    1         1
        represents the Boolean function
        (A) X                   (B) X + Y                  (C) X ⊕ Y              (D) Y
Tap to enlarge
Your answer
Answer & solution

Official answer: A

For X=0 both rows output 0, and for X=1 both rows output 1, regardless of Y. Thus f(X, Y)=X, option A.

Check: Using minterms, the two true rows give XȲ+XY. Factor X to obtain X(Ȳ+Y)=X. X+Y would wrongly output 1 on input 01, while XOR would wrongly output 0 on 11.

Original paper, page 3 · Answer key