From the given graph, it is seen that f(x) is not defined for x<-4. The function g(x) is not defined for x>2
But the function p(x) represents a straight line which is defined for all real x.
Hence, the function p(x) has all real numbers as its domain.
Thus, the correct option is (D)