When crossing railroad tracks, you should:

When crossing railroad tracks during the on-road driving skills test, you must not stop, switch gears, pass another vehicle, or change lanes while any part of your vehicle is in the crossing.
DMV Writen Test