Completely depends on the program of study and school. In astronomy and physics programs, graduate courses are far more advanced, but grades are based almost entirely on homework sets. Undergraduate course are less comprehensive, but have a mix of homework and tests. Working on problem sets is chronically hard, while tests are acutely hard.