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(x)=2^{100} x+1$ and $g(x)=3^{100} x+1$, then the set of real numbers $x$ such that $f(g(x))=x$ is

Consider functions $f: A \rightarrow B$ and $g: B \rightarrow C$ $(A, B, C \subseteq \mathbb{R})$ such that $(g \circ f)^{-1}$ exists. Then:

Let $f(x) = \frac{ax + b}{cx + d}$. Then,$f \circ f(x) = x$ provided that

Define the functions $f, g$ and $h$ from $R$ to $R$ such that $f(x) = x^2 - 1, g(x) = \sqrt{x^2 + 1}$ and $h(x) = \begin{cases} 0, & x \leq 0 \\ x, & x \geq 0 \end{cases}$ Consider the following statements:

If $g(x) = x^2 + x - 2$ and $(g \circ f)(x) = 2x^2 - 5x + 2$, then $f(x)$ is equal to

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