a. A study of the relationship between exercise and heart attacks that is conducted among women who do not smoke. Explain whether gender is a confounder.

As long as the data is only generalized to women, gender is not a confounder. Generalized to all people, it is.