Complete the following sentence.

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