529 withdrawal at end of year for ytd tuition?

Can I hold off until December to make a 529 withdrawal for all tuition paid year to date or do I need to take the withdrawals each semester? 

Laptops seems to be debatable college expense but if the classes are online it should be a valid expense?