pop quiz vs trial and error

pop quiz

noun
  • A quiz or test given without warning or prior announcement. 

trial and error

noun
  • The process of finding a solution to a problem by trying many possible solutions and learning from mistakes until success is attained. 

How often have the words pop quiz and trial and error occurred in a corpus of books? (source: Google Ngram Viewer )