When near a railroad crossing:

You should never assume that you will hear an approaching train. The train operator may fail to sound the horn, or the use of a train's horn may be prohibited in a specific area. Even if the train does sound its horn, noise from inside your own vehicle may prevent you from hearing the train until it is dangerously close.
DMV Writen Test