MCQ
A function $f$ from the set of natural numbers to integers defined by $f(n) = \left\{ \begin{array}{l}\frac{{n - 1}}{2},\;{\rm{when}}\;n\;{\rm{is}}\;{\rm{odd}}\\ - \frac{n}{2},\;{\rm{when\, }}n{\rm{\, is\, even}}\end{array} \right.$, is
- AOne-one but not onto
- BOnto but not one-one
- ✓One-one and onto both
- DNeither one-one nor onto
