This is a simple program that utilizes the Open Trivia Database to get a range of questions. You can choose how many questions, and the category. There is also an option to answer questions from all categories.
If you want to try to beat my high score, play with all categories and 10 questions (the defaults), and try to get a score higher than 7/10! The questions can be pretty difficult!