Django Quiz Questions – Amazing Quiz to brush up your Django knowledge

After completing all the Django concepts from the tutorial series of Django framework, it’s time for testing your knowledge of the covered topics with this Django quiz by DataFlair. Some of the quiz questions of Django are basic while others are advanced.

DataFlair has a complete series of Django quizzes. Make sure to bookmark them:

So, let’s quickly start the Django quiz.

Q.1 What happens when file is edited while the development server is still running?

Correct! Wrong!

Q.2 Which setting contains the parameter of main-urls file?

Correct! Wrong!

Q.3 Django is based on which framework?

Correct! Wrong!

Q.4 What is the purpose of in project directories?

Correct! Wrong!

Q.5 Which method is used instead of path() in to pass in regular expressions as routes?

Correct! Wrong!

Q.6 What happens if, from the given list, I searched for urlpatterns registration/ skipping the trailing/slash?

urlpatterns in Django
Correct! Wrong!

Q.7 What is the use of os.path.dirname(__file__) in this method?

Correct! Wrong!

Q.8 What does happen when you execute this command in Terminal/ PowerShell?

Correct! Wrong!

python shell

Q.9 What is the value of DEBUG when website is online/ or deployed?

Correct! Wrong!

Q.10 What does {{ name }} this mean in Django Templates?

Correct! Wrong!

Q.11 What is this setting for?

Cache Settings - Django Quiz
Correct! Wrong!

Q.12 Check in-valid template tag.

Correct! Wrong!

Q.13 What will this template generate

Django Template - Django Quiz
Correct! Wrong!

Q.14 What does {{ forloop.counter }} prints?

Correct! Wrong!

Q.15 This template {# #} is used for?

Correct! Wrong!

I hope this quiz helps you clear more concepts of Django. This quiz is not there to discourage you. It is only to show that there is much more to learn about Django.

Time to move on to the next quiz – Django Multiple Choice Quiz

Liked the DataFlair’s Django quiz? Share your views in the comment section. We will be glad to assist you.

Happy Learning!

1 Response

  1. Vishakha says:

    this is very nice blog to enhance django knowledge.
    But i am facing some issues regarding a project can anybody help me in that case, waiting for reply from your team.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.