Here is a previous midterm I gave in this course and solutions.