which of the following quartic functions has x=-7 and x=3 as its only two real zeros?

To have x = -7 and x = 3 as the only two real zeros, the quartic function must have the following factors:

(x + 7) and (x - 3)

Therefore, the quartic function can be written as:
f(x) = (x + 7)(x - 3)

Expanding this out gives:
f(x) = x^2 - 3x + 7x - 21

Simplifying further:
f(x) = x^2 + 4x - 21

Therefore, the quartic function with x = -7 and x = 3 as its only two real zeros is f(x) = x^2 + 4x - 21.