A logic gate is a fundamental building block of digital circuits that accepts input and produces output. It performs a logical operation on one or more binary inputs to produce a single binary output. Thus, the correct answer is:
accepts input and produces output.