Trivia-style questions are usually found in the first few stages of an interview as the answers are usually short and can possibly be administered by a minimally-technical recruiter.
Trivia questions are meant to test how well candidates understand the theory behind the domain. They can be aced by either having real solid understanding of the concepts or by pure memorization of answers. While there can be infinitely many possible quiz questions, the most common questions can be found within the next few pages.