Let $f: X \to Y$ be a morphism of schemes, when talking about the surjectivity of $f$, there are at least several possibilities.
(1) $f$ is surjective at the level of sets, that is $\forall \ y \in Y$, there exist $x \in X$, such that $f(x)=y$.
(2) $f$ is surjective in the sense of category morphisms. This means for any scheme $Z$, and morphisms $g_1, g_2 : Y \to Z$ such that $g_1 \circ f=g_2 \circ f$ implies $g_1 =g_2$.
(3)$f$ is surjective at the level of schemes, i.e. $\overline{f(X)} = Y$. This seems unlikely to be correct definition of surjectivity, and I do not know how to make sense of the scheme structure of the closure of $f(X)$ (that is $\overline{f(X)}$). But if $Y$ is reduced, then there is no ambiguity.
My question is two folds: (1) Which is "correct" definition of surjective morphism between schemes. (2) Since both definition 1 and 2 seems reasonable in some sense, are they equivalent? If $Y$ is reduced scheme, are three definitions equivalent?