Answer: Caffeine is the independent variable
Memory is the dependent variable
Explanation:
An independent variable in an experiment can be changes in the terms of quality and quantity and it is expected to develop changes in the dependent or the experimental variable.
Here, caffeine is the independent variable as the effect of caffeine which is a stimulant can be observed on the memory. The memory will be the dependent variable as it is dependent upon the caffeine intake.