Final answer:
The adrenal cortex, the outer layer of the adrenal glands located on top of the kidneys, produces both glucocorticoids and mineralocorticoids.
Step-by-step explanation:
The gland that produces glucocorticoids and mineralocorticoids is the adrenal cortex, which is the outer part of the adrenal gland located on top of the kidneys. Glucocorticoids, such as cortisol, help maintain proper blood-glucose levels and control stress response by increasing glucose synthesis from fats and proteins. Mineralocorticoids, like aldosterone, play a key role in regulating ion concentration in urine, sweat, and saliva by influencing the balance of sodium and potassium in the body. Therefore, the correct answer to the student's question is 3) adrenal cortex.