quiz

Logic Gates

1. Which of the following gates is considered a universal gate in digital logic?

  • A) AND gate
  • B) OR gate
  • C) NOT gate
  • D) NAND gate
D) NAND gate Explanation

2. What is the output of an AND gate if inputs A and B are set to 1?

  • A) 0
  • B) 1
  • C) Depends on other factors
  • D) Cannot be determined

3. What is the algebraic function of the XOR operation?

  • A) A + B
  • B) A' + B
  • C) A . B
  • D) 𝐴 ⊕ 𝐵
D) A ⊕ B Explanation

4. Which logic gate produces a low output only when all its inputs are high?

  • A) NOR gate
  • B) XOR gate
  • C) NAND gate
  • D) AND gate
C) NAND gate Explanation

5. What is the boolean function for a buffer gate?

  • A) F = A . B
  • B) F = A + B
  • C) F = A'
  • D) F = A
D) F = A Explanation