You are coming to a railroad crossing where the crossing signals are flashing. You should:

When approaching a railroad crossing, you must stop your vehicle no closer than 15 feet from the nearest rail if an installed electric or mechanical signal is giving warning of an approaching train. Be aware of other warning signs that may indicate an oncoming train, including seeing a lowered crossing gate or hearing an oncoming train.
DMV Writen Test Logo