Question

g(.)g(.) is a function from AA to BB, f(.)f(.) is a function from BB to CC, and their composition defined as f(g(.))f(g(.)) is a mapping from AA to CC.

If f(.)f(.) and f(g(.))f(g(.)) are onto (surjective) functions, which ONE of the following is TRUE about the function g(.)g(.)?

Choose one option
Official answer and solution
Official answer
D
From
Official GATE 2025 answer key

Solution

Test whether ff and f∘gf \circ g being surjective forces gg to be injective or surjective using a small counterexample.

When f∘g:A→Cf \circ g: A \to C is onto, ff is guaranteed to be onto, but g:A→Bg: A \to B does not need to be either one-to-one or onto.

Counterexample: Let A={1,2}A = \{1, 2\}, B={1,2}B = \{1, 2\}, and C={1}C = \{1\}. Define:

  • g(1)=1,  g(2)=1g(1) = 1, \; g(2) = 1
  • f(1)=1,  f(2)=1f(1) = 1, \; f(2) = 1

Here both ff and f∘gf \circ g map onto C={1}C = \{1\}, yet gg is neither one-to-one (g(1)=g(2)g(1) = g(2)) nor onto (2∈B2 \in B has no preimage). Thus g(.)g(.) is not required to be a one-to-one or onto function.

Final answer

Option (D)

Common trap

Confusing the theorem 'f∘gf \circ g onto   ⟹  f\implies f onto' with 'f∘gf \circ g onto   ⟹  g\implies g onto'.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2025 Computer Science and Information Technology - Session 1 (CS1)
Question
17 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.