Skip to content
Official PYQ · 2005

GATE CS 2005 Q43 — Sets, Relations and Functions

Explain with AI

Let f:B→Cf: B \to C and g:A→Bg: A \to B be two functions and let h=fogh = f o g. Given that hh is an onto function which one of the following is TRUE?

Choose one option
View worked solution

Answer: B

We are given that h=f∘g:A→Ch = f \circ g : A \to C is an onto (surjective) function. This means that for every element c∈Cc \in C, there exists some a∈Aa \in A such that:

h(a)=f(g(a))=ch(a) = f(g(a)) = c

Since g(a)∈Bg(a) \in B, let b=g(a)b = g(a). Then f(b)=cf(b) = c. This implies that for every c∈Cc \in C, there exists an element b∈Bb \in B such that f(b)=cf(b) = c. Therefore, ff must be onto.

However, gg does not need to be onto. Consider the following counterexample:

  • Let A={1}A = \{1\}, B={x,y}B = \{x, y\}, and C={z}C = \{z\}.
  • Define g:A→Bg: A \to B as g(1)=xg(1) = x (not onto, since yy is not mapped).
  • Define f:B→Cf: B \to C as f(x)=zf(x) = z and f(y)=zf(y) = z (onto).
  • Then, h(1)=f(g(1))=f(x)=zh(1) = f(g(1)) = f(x) = z, which makes h:A→Ch: A \to C onto.

Thus, ff must be onto, but gg need not be onto.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Sets, Relations and Functions questions