Practice-It!,
UW's practice problem web application written by Marty Stepp
CodingBat (a useful site full of Java
and Python practice problems)
For your homeworks:
Unofficial style guide, developed by a TA. Style tips are covered chapter by chapter with sections at the end for indentation, spacing, and commenting.