A graph must pass a Vertical Line Test to be a function.
You can visualize a vertical line anywhere on the graph. If the vertical line hits the graph twice, the graph cannot be a function.
For answer A, you can draw a vertical line anywhere on x < 0, and hit the graph twice. This means the graph is not a function.
For answer B, you can draw a vertical line anywhere on the circle and hit the graph twice. This means the graph is not a function.
For answer C, the graph is a vertical line. This means the graph is not a function.
No matter where you put a vertical line on D, you will only hit the graph once. This means that graph D represents a function.