If $f: Z \rightarrow 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

  • A
    onto but not one-to-one
  • B
    one-to-one but not onto
  • C
    one-to-one and onto
  • D
    neither one-to-one nor onto

Explore More

Similar Questions

On the set of integers $Z$,define $f: Z \rightarrow Z$ as $f(n) = \begin{cases} \frac{n}{2}, & n \text{ is even} \\ 0, & n \text{ is odd} \end{cases}$. Then $f$ is:

Let $f: R \rightarrow R$ be defined by $f(x) = x^{2} - \frac{x^{2}}{1+x^{2}}$ for all $x \in R$. Then,

For functions $f$ and $g$,where $f: [0, \frac{\pi}{2}] \rightarrow R$ with $f(x) = \sin x$ and $g: [0, \frac{\pi}{2}] \rightarrow R$ with $g(x) = \cos x$,which of the following is true?

Let $f: R \rightarrow R$ be defined by $f(x) = \begin{cases} 2x; & x > 3 \\ x^2; & 1 < x \leq 3 \\ 3x; & x \leq 1 \end{cases}$. Then $f(-1) + f(2) + f(4)$ is

Let $f : R \rightarrow R$ be a function such that $f(x) = \frac{x^2+2x+1}{x^2+1}$. Then

Vedclass Products

For Students

Vedclass Test Series

Mock tests in real JEE/NEET style with performance analysis. 5-day free trial.

Start Free Trial
For Teachers

Exam Paper Generator

Generate Set A/B/C/D exam papers from 7.5L+ questions in 2 minutes. 3 chapters free.

Try Free
For Institutes

Online Exam Module

Live online exams with unlimited students, 360° analytics & white-label branding.

See Demo