When would the following vehicles be able to continue driving?

Pick an answer to test yourself.
Why this answer?
Correct answer: A. Only when the barrier is completely opened and a green light is shown by the traffic light.
At a level crossing, continue only when the barrier is completely open and the red light is no longer flashing. A barrier that has only started to move still requires you to stay standing, because another train may be on its way.
More detail
Stop before the stop line, and if there is no such line, before the barrier. Even a barrier that is only starting to move, to close or to open, requires you to stay standing.
Where does the law say this? (regulation 56(א), regulation 56(א)(4))
The law is quoted in Hebrew, as published: there is no official translation.
ולא ימשיך בנסיעה אלא לאחר שנפתח המחסום או פסק אות האזהרהTraffic Regulations, regulation 56(א) · Full text
המחסום שלפני המפגש חוסם את הדרך או חלק ממנה או מתחיל להתנועע לקראת חסימת הדרך או פתיחתהTraffic Regulations, regulation 56(א)(4) · Full text