Two functions $f: R \rightarrow R, 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(x)=\sqrt{x}$ $(x \geq 0)$ and $g(x)=1+x^2$, then $(f \circ g)^{\prime}(1)=$

If $f(x) = (a - x^n)^{1/n},$ where $a > 0$ and $n$ is a positive integer,then $f[f(x)] = $

Let $f(x) = \log_e x$ and $g(x) = \frac{x^4 - 2x^3 + 3x^2 - 2x + 2}{2x^2 - 2x + 1}$. Then the domain of $f \circ g$ is:

Let $f(x) = 2^{10} \cdot x + 1$ and $g(x) = 3^{10} \cdot x - 1$. If $(f \circ g)(x) = x$,then $x$ is equal to

If $g(f(x))=|\sin x|$ and $f(g(x))=(\sin \sqrt{x})^2$, 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