Define logic gate.
A gate is an electronic circuit that operates on one or more signals and always produces an output signal.