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

$f: R \rightarrow R$ and $g: R \rightarrow R$ are two functions such that $f(x)=x^2$ and $g(x)=\frac{1}{x^2}$,then $x^4(f \circ g)(x)$ is equal to

For every real number $x \neq -1$, let $f(x) = \frac{x}{x+1}$. Define $f_1(x) = f(x)$ and for $n \geq 2$, $f_n(x) = f(f_{n-1}(x))$. Then the product $f_1(-2) \cdot f_2(-2) \cdot \ldots \cdot f_n(-2)$ is equal to:

Let $f(x) = \frac{x-1}{x+1}$,$x \in R - \{-1, 0, 1\}$. If $f^{n+1}(x) = f(f^n(x))$ for all $n \in N$,then $f^6(6) + f^7(7) = $

If $f$ is an increasing function and $g$ is a decreasing function, and $fog$ is defined, then what kind of function is $fog$?

Let $f: R \rightarrow R$ and $g: R \rightarrow R$ be defined as $f(x)=\begin{cases} \log _e x & , x>0 \\ e^{-x} & , x \leq 0 \end{cases}$ and $g(x)=\begin{cases} x & , x \geq 0 \\ e^{x} & , x < 0 \end{cases}$. Then $gof: R \to R$ 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