Answer is A. is a function
Reason - it passes the vertical line test where a vertical line will not pass over two coordinates on the graph. Each x value must have a unique y value to be a function.
B has two points on the y axis (x = 0)
C has two points at x = -2
D has two points at x = -1
I print screened c and d to show the vertical line test as an example.