Final answer:
Corticosteroids are given to accelerate fetal lung maturity by promoting fetal viability and inducing the growth of fetal tissues. They are necessary for the maturation of the fetal lungs and liver.
Step-by-step explanation:
The medication given to accelerate fetal lung maturity is corticosteroids. Corticosteroids promote fetal viability by regulating progesterone production and triggering fetal synthesis of cortisol, which helps with the maturation of the lungs. They induce the growth of fetal tissues and are necessary for the maturation of the fetal lungs and liver. Corticosteroids are typically administered to the mother or infant to assist the development of lungs.