Which table represents a function?

Answer: D
Step-by-step explanation:
For every input there can be only one output. D is the only answer that has one output per input.