COMP2068 midterm exam