Let $f \colon A \to B$ and $g \colon B \to C$. Then
If $g \circ f$ is injective, then I know that $f$ is injective, but what can we say about the injectivity of $g$?
If $g \circ f$ is surjective, then I know that $g$ is surjective, but what can we say about the surjectivity of $f$?
No thing we can say about injectivity of $g$ except that it is injective on $f(A)$.
For next question also it means that $g$ maps $f(A)$ to entire $C$,no thing more.