A quiz or test given without warning or prior announcement.
tryout
noun
A test of the suitability or effectiveness of a person or thing, especially an audition for a performer or athlete, or the advance staging of a play at a small theatre.
How often have the words pop quiz and tryout occurred in a corpus of books? (source: Google Ngram Viewer )