Two functions $f: R \rightarrow R$ and $g: R \rightarrow R$ are defined as follows: $f(x) = \begin{cases} 0, & x \text{ is rational} \\ 1, & x \text{ is irrational} \end{cases}$ and $g(x) = \begin{cases} -1, & x \text{ is rational} \\ 0, & x \text{ is irrational} \end{cases}$. Then, $(f \circ g)(\pi) + (g \circ f)(e)$ is equal to:

  • A
    $0$
  • B
    $-1$
  • C
    $2$
  • D
    $1$

Explore More

Similar Questions

If $f: R \rightarrow R$ and $g: R \rightarrow R$ are defined by $f(x)=|x|$ and $g(x)=[x-3]$ for $x \in R$, then $\{g(f(x)):-\frac{8}{5} < x < \frac{8}{5}\}$ is equal to

If the function $f(x) = \frac{1}{2} - \tan \left( \frac{\pi x}{2} \right)$ for $-1 < x < 1$ and $g(x) = \sqrt{3 + 4x - 4x^2}$,then the domain of the composite function $(g \circ f)(x)$ is:

$f(x) = \frac{1}{x}$ and $g(x) = \frac{1}{\sqrt{x}}$,then:

Consider the function $f: R \rightarrow R$ defined by $f(x)=\frac{2x}{\sqrt{1+9x^2}}$. If the composition of $f$,$\underbrace{(f \circ f \circ \ldots \circ f)}_{10 \text{ times }}(x) = \frac{2^{10}x}{\sqrt{1+9\alpha x^2}}$,then the value of $\sqrt{3\alpha+1}$ is equal to:

If $f(x)$ and $g(x)$ are functions satisfying $f(g(x)) = x^3 + 3x^2 + 3x + 4$ and $f(x) = (\ln x)^3 + 3$,then the slope of the tangent to the curve $y = g(x)$ at $x = -1$ 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