The correct answer is: by analyzing her average test scores after nights with different amounts of sleep.
This is the best way to approve her hypothesis, because she can compare the results of the tests influenced by different amounts of sleep.
The independent variable (the one that is changed by the scientist) in this hypothesis would be hours of sleep. The dependent variable (the one that is observed and that responds to the change made by the independent variable) would be result of test.