Skip to content
GATEiit

GATE CSE 2025 Session 1 Q17: What f and f∘g onto imply about g

Question

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

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

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation

Answer: D (official GATE 2025 final answer key)

Concept used: If f∘gf \circ g is onto, only ff is forced to be onto; gg can be anything.

First step: Try a counterexample: A={1,2}A = \{1, 2\}, B={x,y,z}B = \{x, y, z\}, C={c}C = \{c\}, g(1)=g(2)=xg(1) = g(2) = x; then ff and f∘gf \circ g are onto but gg is neither one-to-one nor onto.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2025 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key