Select the correct answer.
The graph of function f is shown.



Function g is represented by the table.

x -1 0 1 2 3
g(x) 15 3 0

Which statement correctly compares the two functions?

A.
They have the same x- and y-intercepts.
B.
They have the same y-intercept and the same end behavior as x approaches ∞.
C.
They have different x- and y-intercepts but the same end behavior as x approaches ∞.
D.
They have the same x-intercept but different end behavior as x approaches ∞.