GATE 2025 CS (CS1) – Question 17
$g(.)$ is a function from $A$ to $B$, $f(.)$ is a function from $B$ to $C$, and their composition defined as $f(g(.))$ is a mapping from $A$ to $C$.
If $f(.)$ and $f(g(.))$ are onto (surjective) functions, which ONE of the following is TRUE about the function $g(.)$?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (D) $g(.)$ is not required to be a one-to-one or onto function.
Explanation
Counterexamples exist. A={1,2}, B={1}, C={1} with g constant and f identity gives g not injective. B={1,2,3}, C={1} with f constant gives g not onto. Both f and f∘g are still onto.