You are stopped at a railroad crossing where a train has just passed. You should:

When the last car of a train passes through a railroad crossing where you are waiting, do not proceed until you are sure no train is coming on another track from either direction. After you are certain the tracks are clear, you may cross.
DMV Writen Test