Which sentence is more formal?

 - To succeed here, students are expected to set aside several hours a day for studying.
 - To succeed here, students are expected to hit the books for several hours a day.
The second sentence is less formal. You can tell because it uses an idiom (hit the books).
The first sentence uses formal language in place of the idiom, so it is more formal overall.