MCQ
Let $f$ be defined on $[-5,5]$ as $ f(x)=\left\{\begin{array}{l} x \text { if } x \text { is rational } \\ -x \text { if } x \text { is irrational } \end{array}\right. $ Then $f(x)$ is
  • A
    continuous at every $x$ except $x=0$
  • B
    discontinuous at every $x$ except $x=0$
  • C
    continuous everywhere
  • discontinuous everywhere

Answer

Correct option: D.
discontinuous everywhere
As $x \rightarrow 0$ both $x$ and $-x$ tend to zero, $f(0)=0$
$\therefore f(x)$ is continuous at $x=0$.
For $x \neq 0, x \neq-x,$
$f(x)$ is discontinuous.

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free

Similar questions

The area under the curve $y= 2x^3+ 4x^2$ between $x = 2, x = 4$ is:
The general solution of the dofferential equation $\frac{\text{dy}}{\text{dx}}=\text{e}^{\text{x}+\text{y}}$ is:
Let $\vec{a}=2 \hat{i}+5 \hat{j}-\hat{k}, \vec{b}=2 \hat{i}-2 \hat{j}+2 \hat{k}$ and $\overrightarrow{\mathrm{c}}$ be three vectors such that $(\vec{c}+\hat{i}) \times(\vec{a}+\vec{b}+\hat{i})=\vec{a} \times(\vec{c}+\hat{i}) \cdot \vec{a} \cdot \vec{c}=-29$, then $\overrightarrow{\mathrm{c}} \cdot(-2 \hat{\mathrm{i}}+\hat{\mathrm{j}}+\hat{\mathrm{k}})$ is equal to :
For $k \in R$, let the solutions of the equation $\cos \left(\sin ^{-1}\left(x \cot \left(\tan ^{-1}\left(\cos \left(\sin ^{-1} x\right)\right)\right)\right)\right)=k, 0\,<\,|x|<\,\frac{1}{\sqrt{2}}$ be $\alpha$ and $\beta$, where the inverse trigonometric functions take only principal values. If the solutions of the equation $x ^{2}- bx -5=0$ are $\frac{1}{\alpha^{2}}+\frac{1}{\beta^{2}}$ and $\frac{\alpha}{\beta}$, then $\frac{b}{k^{2}}$ is equal to$......$
Let $A$ be a point on the line $\vec r = \left( {1 - 3\mu } \right)\hat i + \left( {\mu  - 1} \right)\hat j + \left( {2 + 5\mu } \right)\hat k$ and $B(3, 2, 6)$ be a point in the space. Then the value of $\mu $ for which the vector $\overrightarrow {AB} $ is parallel to the plane $x -4y +3z = 1$ is
The distance of the point $({x_1},{y_1},{z_1})$ from the line $\frac{{x - {x_2}}}{l} = \frac{{y - {y_2}}}{m} = \frac{{z - {z_2}}}{n}$, where $l,m, n$ are the direction cosines of the line, is given by:
There are two value of a which makes the determinant $\triangle=\begin{vmatrix}1&-2&5\\2&\text{a}&-1\\0&4&2\text{a}\end{vmatrix}$ equal to $86$. The sum of these two values is :
Let $f(x) = \left\{ {\begin{array}{*{20}{c}}{|x|,\,0 < \,|x|\, \le 2}\\{\,\,1\,\,\,,\,\,x = 0\,\,\,\,\,\,\,\,\,}\end{array}} \right.$, then at $x = 0$ $f$ has
$\left| {\,\begin{array}{*{20}{c}}0&{p - q}&{p - r}\\{q - p}&0&{q - r}\\{r - p}&{r - q}&0\end{array}\,} \right| = $
The value of the determinant $\begin{vmatrix}\text{a}-\text{b}&\text{b}+\text{c}&\text{c}\\\text{b}-\text{c}&\text{c}+\text{b}&\text{b}\\\text{c}+\text{a}&\text{a}+\text{b}&\text{c}\end{vmatrix}$ is: