Answer:
D
Explanation:
An independent variable is variable in an experiment that is not affected by another variable and is often used to influence the other variables, which are dependent variables. In this case the size of the container is the independent variable because its changes affect the behavior of the fruit flies. The behavior of the fruit flies is the dependent variable. The number of flies, that is kept constant, is the controlled variable.