Why an ac solenoid valve attract the plunger even though we interchanges the terminal?

Why an ac solenoid valve attract the plunger even though we interchanges the terminal? Will the poles changes?

Answer:Yes because the poles changes for every half-cycle of ac voltage so the polarity of AC voltage is continuously changing for every half cycle. so, interchanging of terminals in ac system does not show any difference. That’s why the ac solenoid attract the plunger even though it’s terminals are interchanged.