The GATE Grind

GATE 2022 CS – Question 2

General Aptitude · Quantitative Aptitude: Algebra, Geometry and Mensuration · 1 mark · Multiple choice

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?

  1. $\frac{5}{6}$
  2. $\frac{6}{5}$
  3. $\frac{13}{6}$
  4. $\frac{6}{13}$

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

All Quantitative Aptitude: Algebra, Geometry and Mensuration questions →