How does the sentence end?

Bobby passed his quiz but not his test because he only studied for the
quiz beforehand.