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