It varies, as you would expect.
Most ask for a deposit when you apply for accomodation and most generally ask you to pay termly after each term from my experience. Your best bet is to email your firm/insurance university accomodation office and ask [or just firm if unconditional].