I came across the following GRE question. I had no problem finding the mean. However, the answer for the median is given to be 1. I don't understand how they arrive at this.
Find the mean and median of the values of the random variable $X$, whose relative frequency distribution is given in the table below. $$\begin{array}{c|c} \,\,\,X\,\,\,& \,\,\text{Relative Frequency}\,\,\\ \hline \\ 0 & 0.18 \\ 1 & 0.33 \\ 2 &0.10 \\ 3 &0.06 \\ 4 &0.33 \\ \hline \end{array}$$
Imagine that there were $100$ observations. We got the result $0$ a total of $18$ times, and the result $1$ a total of $33$ times, and so on. Thus $51$ of the observations are $\le 1$. It follows that the median is $\le 1$. But only $18$ of the observations are $\le 0$. It follows that the median is $1$.