If $f:\mathbb{Z}\to\mathbb{Z}$ is defined by
$f(x)=\begin{cases}\frac{x}{2} & \text{if } x \text{ is even}\\ 0 & \text{if } x \text{ is odd}\end{cases}$
then f is
- (1)
onto but not one to one
- (2)
one to one but not onto
- (3)
one to one and onto
- (4)
neither one to one nor onto
Show answer
Option (1) is correct.
Official APSCHE final key