One way to prevent drowsiness while driving is to:

Driving while fatigued can be extremely dangerous. Strategies for preventing drowsiness while driving include getting a full night's sleep before a trip; having someone ride with you; scheduling trips for times during which you are normally awake; and avoiding medications that may cause drowsiness. Exercising regularly can increase your energy levels and make you less likely to become tired while driving.
DMV Writen Test