The correct answer is: C. NAND gate
A NAND gate is a digital logic gate that implements logical negation. It takes two inputs and produces an output that is true (1) only if both inputs are false (0). If either input is true (1), the output is false (0).
An AND gate is a digital logic gate that implements logical conjunction. It takes two inputs and produces an output that is true (1) only if both inputs are true (1). If either input is false (0), the output is false (0).
An OR gate is a digital logic gate that implements logical disjunction. It takes two inputs and produces an output that is true (1) if either input is true (1). If both inputs are false (0), the output is false (0).
A NOR gate is a digital logic gate that implements logical negation of
an OR function. It takes two inputs and produces an output that is true (1) only if both inputs are false (0). If either input is true (1), the output is false (0).Therefore, the output of a NAND gate is 1 only if at least one of its inputs is 0.