GATE / CS ARCHIVE

GATE CSE 2025 SET 1 / QUESTION 17

Testing what surjective composition implies

Discrete Mathematics · Sets, Relations & Functions · Full GATE CSE 2025 Set 1 paper

GATE 2025 Set 1, Q17 1 mark · MCQ
Report issue

Sets, Relations & Functions

Question 17, GATE 2025: Let g:A→B and f:B→C. Both f and f∘g are surjective. Which property must g have? A surjective; B injective; C bijective; D neither injectivity nor surjectivity is required.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Approach: Determine whether hitting every point of C requires hitting every point of B. Different points of B can share the same image under f, so it need not.
Construct a counterexample: A={1,2}, B={u,v}, C={w}. Define g(1)=g(2)=u and f(u)=f(v)=w. The function f is onto C because w has a preimage. The composition sends both elements of A to w, so it is also onto C.
However g is not injective, because its two inputs share the output u, and is not onto B, because v is missed. This single example refutes the necessary-property claims in A, B and C and establishes D.
Conceptually, g only needs to hit enough points of B to cover all f-fibres over C. The conclusion would differ if extra assumptions, such as injectivity of f, were supplied; none is supplied here.

Original paper, page 17 · Answer key