GATE 2022 CS – Question 2
A function $y(x)$ is defined in the interval $[0,1]$ on the $x$-axis as
$y(x)=\begin{cases}2 & 0\le x<\frac{1}{3}\\ 3 & \frac{1}{3}\le x<\frac{3}{4}\\ 1 & \frac{3}{4}\le x\le 1\end{cases}$
Which one of the following is the area under the curve for the interval $[0,1]$ on the $x$-axis?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (C) $\frac{13}{6}$
Explanation
The piecewise-constant graph consists of three rectangles. Their widths are $1/3$, $3/4-1/3=5/12$, and $1-3/4=1/4$; their heights are 2,3,1 respectively.
Add height times width for each interval:
$$A=2\left(\frac13\right)+3\left(\frac5{12}\right)+1\left(\frac14\right)=\frac8{12}+\frac{15}{12}+\frac3{12}=\frac{13}{6}.$$
Choose **C**. The widths, rather than the interval endpoints themselves, must be used. Whether a shared endpoint belongs to its left or right interval does not change area.
More Quantitative Aptitude: Algebra, Geometry and Mensuration questions
- GATE 2022 CS Q3
- GATE 2021 CS (CS1) Q2
- GATE 2021 CS (CS1) Q6
- GATE 2020 CS Q8
- GATE 2020 CS Q9
- GATE 2026 EC Q4
All Quantitative Aptitude: Algebra, Geometry and Mensuration questions →