Bicyclists have the choice to ride:

Bicyclists have the choice to ride on the roadway, on the shoulder of a road, in a bicycle lane, or on a sidewalk.
DMV Writen Test