In the given set of numbers the median will be the middle number after it has been arranged in an ascending order. So the given numbers can be arranged as -2,1,5,8 with n depending upon its value falling in somewhere between.moneyman wrote:If set s consists of the numbers 1,5,-2,8 and n, is 0<n<7 ?
(1) The median of the numbers in S is less than 5
(2) The median of the numbers in S is greater than 1
Ans C
Let us consider 3 cases for n (1) it is less than 0 (2) it is greater than 7 (3) it is between 0 and 7 (which is our question).
The first statement says that the median is less than 5. Now if n is <0 e.g -4 the median would be 1 (which is less than 5) as the series would become -4,-2,1,5,8. If n is equal to 3 then the series would become -2,1,3,5,8 in which case the median is 3 (<5> 7, e.g. 15, then the series would become -2,1,5,8,15 in which case the median would be 5 (which is equal to 5 and hence negates the statement) which mean n cannot be greater than 7. So as we can see the n can be < 0 i.e. outside the range of numbers 0<n<7 and also assume a value within the range 0<n<7 and still satisfy statement 1. Hence this statement is not sufficient.
The second statement says the median is greater than 1. Using the same reasoning as above we will see that n can assume values within the range 0<n<7 and values greater than 7 and still satisfy statement 2. So this statement is also insufficient.
Combine both the statements and we have that the median is between 1 and 5. Now as there is no other number between 1 and 5 in the series the median will be n and it will assume a value of 2,3,4 which means that n will be between 0 and 7. So both the statements combined are sufficient. Let me know if any doubts.












