p-comp midterm