Question

Consider the following sample of numbers:

9, 18, 11, 14, 15, 17, 10, 69, 11, 13

The median of the sample is

Choose one option
Official answer and solution
Official answer
A
From
Official GATE 2024 answer key

Solution

Sort the 10 sample numbers in ascending order and take the average of the 5th and 6th elements.

Sorting the n=10n = 10 numbers in non-decreasing order gives:

9,  10,  11,  11,  13,  14,  15,  17,  18,  699,\; 10,\; 11,\; 11,\; 13,\; 14,\; 15,\; 17,\; 18,\; 69

Since n=10n = 10 is even, the median is the average of the n2=5th\frac{n}{2} = 5\text{th} and (n2+1)=6th\left(\frac{n}{2} + 1\right) = 6\text{th} values:

Median=13+142=13.5\text{Median} = \frac{13 + 14}{2} = 13.5
Final answer

Option (A)

Common trap

Computing the mean (18.7) or mode (11) instead of sorting the array first to find the median.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2024 Computer Science and Information Technology - Set 1 (CS1)
Question
3 of 65
Section
General Aptitude

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.