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

$f: N \rightarrow N, f(x) = x^3$ is . . . . . . .

Let $f : X \rightarrow Y$ be a function such that $f(x) = \sqrt{x - 2} + \sqrt{4 - x} .$ Then the set of $X$ and $Y$ for which $f(x)$ is both injective as well as surjective,is-

The function $f(x) = \frac{x^2+2x-15}{x^2-4x+9}$,$x \in R$ is

The function $f: N \rightarrow Z$ defined by $f(n) = \begin{cases} \frac{n}{2} & , n \text{ is even} \\ -\left(\frac{n-1}{2}\right) & , n \text{ is odd} \end{cases}$ is . . . . . . .

If $f:[0, \infty) \to [0, \infty)$ and $f(x) = \frac{x}{1+x}$,then $f$ is

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