Q42 / 160 · AP EAMCET 2025 (22 MAY SHIFT 1) · Mathematics
If a real valued function $f:[-1,2] \rightarrow B$ defined by
$f(x)=\left\{\begin{array}{l}
1-x, \quad \text { when }-1 \leq x \leq 1 \\
x-1, \quad \text { when } 1 < x \leq 2
\end{array}\right.$
is a surjection, then $\mathrm{B}=$
- A$[-1,2]$
- B$[-1,1]$
- Correct answerC$[0,2]$
- D$[0,1]$
Hence, the correct answer is option: 'C'.