I am trying to resolve an exercise and there are 2 point that are missing in order to finalize:
Suppose $A$, $B$, $C$, and $P$ are $R$-modules, and $f:A \rightarrow B$ and $g:B\rightarrow C$ are both $R$-module morphisms.
1) $\forall \phi : C \rightarrow P$ morphism, if $\phi \circ g = 0 \Rightarrow \phi = 0$, for a morphism $\phi : C \rightarrow P$, does this imply that $g$ is surjective? Why?
2) If $\phi \circ g \circ f = 0$ $ \forall \phi : C \rightarrow P$ morphism does this mean that $g \circ f = 0$? Why?
For the first point consider for $\phi$ the quotient morphism $\pi:\ C\ \longrightarrow\ \operatorname{coker}g$.
For the second point consider for $\phi$ the identity morphism $\operatorname{id}:\ C\ \longrightarrow\ C$.