Hey there!
The independent variable is also called the manipulated variable, and the dependant is the result- depends on the independent variable.
The number of hours you study is something you determine and dictate- so it's the independent. The score you get on the test results from how much you study and is, therefore, the dependent variable.
Hope this helps!