A motorist should know that a bicyclist operating on a roadway must:

Bicyclists must ride in a bicycle lane, if one is available. If there is no bicycle lane, they must remain near the right curb or right edge of the road, moving in the same direction as traffic in the lane nearest them.
DMV Writen Test