Texas Instruments Interview Question

Describe the function of switching and linear regulator