Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set the default subtitles language in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Quiz Application

Here are examples of a quiz application you can use for inspiration:

00:00 Quiz Application. Knowledge is power. There are so many things in the world to learn, and quizzes to help in testing the understanding of those concepts. As an intermediate Python developer, you don’t have to understand everything about the language; taking tests is one way to find out the things you don’t fully understand, and also those you do. This is where the quiz application comes in.

00:23 The quiz application will present questions to the users and expect the right answers to those questions. Think of it as a kind of questionnaire. With the quiz application, special users that you can call administrators will be allowed to create tests, so regular users can answer the questions and test their understanding of the topics in the quiz.

00:42 Let’s take a look at a couple of sites which offer this kind of functionality.

00:46 Firstly, myQuiz, which allows you to conduct multiplayer quizzes in real-time across multiple locations. Secondly, Kahoot!, which offers different quiz formats and can be taken by multiple players at the same time. Let’s take a look at some of the technical aspects you’ll need to approach with your quiz application. Firstly, the creation and storage of quizzes.

01:11 The main object of the site is to set and sit quizzes, so users should be able to set questions and quizzes and be able to score them. Making the quizzes multiple choice makes marking and scoring much easier than free-text answers. This will involve careful database design and execution, whether you’re using your framework’s ORM or your own custom-made solution.

01:32 Secondly, user accounts. As with previous projects in this section, user accounts will need to be implemented, and you may need to implement different functions for different users, such as having site and group administrators, users who can set tests, and those who can only take part by answering. Now, let’s take a look at some of the extra challenges you could take on having finished your basic quiz application. Firstly, timers. Timed quizzes can add an element of competition and pressure and also allow asynchronous performances to be compared more readily. Sharing.

02:06 Being able to share quizzes on other platforms would be a useful feature for users of the site and also to generate more traffic. Synchronized live quizzes.

02:16 Sites like Kahoot! allow multiple players in the same venue, but being able to synchronize the same quiz across multiple locations would allow people in different places to take part at the same time, making the application much more fun for users who can’t be together in person.

Become a Member to join the conversation.