We are given that both \( f \) and \( f(g) \) are surjective (onto) functions.
\( f(g(x)) \) represents the composition of functions \( f \) and \( g \), where \( g \) maps from \( A \) to \( B \), and \( f \) maps from \( B \) to \( C \). The composition \( f(g(x)) \) maps from \( A \) to \( C \).
Let's analyze the problem:
- The fact that \( f(g(x)) \) is surjective means that for every element in \( C \), there is an element in \( A \) that maps to it through the composition of \( f \) and \( g \).
- For \( f(g(x)) \) to be surjective, the image of \( g(x) \) (which lies in \( B \)) must cover all the elements in the domain of \( f \), i.e., \( f \) must cover the entire set \( C \).
- However, \( g(x) \) does not need to be surjective (onto) because it is not required to cover the entire set \( C \), just the relevant part that \( f \) needs to map onto \( C \). Therefore, \( g(x) \) does not need to be injective or surjective for the composition to be surjective.
As a result, \( g(x) \) is not required to be either one-to-one (injective) or onto (surjective).
Thus, the correct answer is \( \boxed{D} \).