The answer is a function must be a continuous function on a closed interval. This is based on the Extreme Value Theorem, this states that a function 'f' that is continuous on a closed interval has an absolute minimum value and an absolute maximum value on that interval.