A passenger in a moving motor vehicle is not permitted to:

It is unlawful for someone to drink from or possess an open container of alcohol while in the passenger area of a motor vehicle that is on a public road. Failure to adhere to this law will result in negative consequences for the driver.
DMV Writen Test