If you want to take a midterm then you should attend classes.