The correct answer is option B
Dependent variable can be defined as the result of the experiment which is being measured.The dependent variable responds to the independent variable.
The result of sleeping for 8 and the result of sleeping for 5 hours will be different.
Here option b states the result of the experiment so the dependent variable will be the result of memory tests for both the groups.