What conditions must be met to ensure that a function has an absolute maximum value and an absolute minimum value on an interval?Choose the correct answer below.A. A critical point must occur on a closed interval on (a,b).B. The function must be continuous on a closed interval (a,b).C. The function must be continuous for some subinterval on [a,b].D. The function must be continuous on an open interval (a,b).