Django
Django is a high-level Python web framework that enables rapid development of secure and maintainable websites. It follows the Model-View-Template (MVT) architecture and comes with built-in features for user authentication, admin interface, and database management.
Take this assessment to check where do you stand in the Django.
Click the Rewards tab for eligibility requirements.
Read the FAQs tab carefully for Instructions before beginning the assessment.
NYXPoints are used to generate the Leaderboard (coming soon). They are awarded for achieving a certain score.
- 200 nyxpoints for a passing score of 80% or more
- 300 nyxpoints for a perfect score of 100%
- Didn’t pass? You still get 30 nyxpoints for attempting the assesment
IMPORTANT instructions for taking the Assessment
- The timer starts when you click Start Assessment
- DO NOT refresh/reload the page or use the back button to navigate away from the page.
- Navigating away from the assessment page DOES NOT stop/pause the timer and the will restart the assessment when you come back to it. The answers are NOT saved.
General
- There are NO pre-requisites to take this assessment. Take this assessment even if you are completely new to Linux.
- The assessment is completely FREE.
- Preferably take it in a closed book mode.
- DO NOT copy/paste, share or upload questions elsewhere.
Eligible Rewards

300 NyxCoins*
* NyxCoins vary on score
Assessment Summary
0 of 30 Questions completed
Questions:
Information
You have already completed the assessment before. Hence you can not start it again.
Assessment is loading…
You must sign in or sign up to start the assessment.
You must first complete the following:
Results
Results
0 of 30 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
| Average score |
|
| Your score |
|
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 30
1. Question
What is Django?
CorrectIncorrect -
Question 2 of 30
2. Question
Which command is used to create a new Django project?
CorrectIncorrect -
Question 3 of 30
3. Question
How do you configure a PostgreSQL database in a Django project?
CorrectIncorrect -
Question 4 of 30
4. Question
How does Django enhance web application security?
CorrectIncorrect -
Question 5 of 30
5. Question
In Django’s MVT architecture, how do views and templates interact?
CorrectIncorrect -
Question 6 of 30
6. Question
Which command is used to run the Django development server?
CorrectIncorrect -
Question 7 of 30
7. Question
Which is true about manage.py and django-admin in a Django project?
CorrectIncorrect -
Question 8 of 30
8. Question
Which Django component is responsible for handling HTTP requests?
CorrectIncorrect -
Question 9 of 30
9. Question
What is the correct way to create a Django app?
CorrectIncorrect -
Question 10 of 30
10. Question
Which template tag is used to include static files in Django templates?
CorrectIncorrect -
Question 11 of 30
11. Question
What is the purpose of Django migrations?
CorrectIncorrect -
Question 12 of 30
12. Question
Which Django field type is used for storing large text content?
CorrectIncorrect -
Question 13 of 30
13. Question
What is a security concern with leaving DEBUG=True in production settings?
CorrectIncorrect -
Question 14 of 30
14. Question
Which Django ORM method is used to retrieve all objects from a model?
CorrectIncorrect -
Question 15 of 30
15. Question
What is the purpose of the Django admin interface?
CorrectIncorrect -
Question 16 of 30
16. Question
What happens when an unauthenticated user tries to access a Django view protected with @login_required?
CorrectIncorrect -
Question 17 of 30
17. Question
What is the purpose of Django’s CSRF protection?
CorrectIncorrect -
Question 18 of 30
18. Question
Which Django model field parameter is used to create a foreign key relationship?
CorrectIncorrect -
Question 19 of 30
19. Question
What is the difference between get() and filter() methods in Django ORM?
CorrectIncorrect -
Question 20 of 30
20. Question
Which Django feature allows you to extend HTML templates?
CorrectIncorrect -
Question 21 of 30
21. Question
What is the purpose of Django’s middleware?
CorrectIncorrect -
Question 22 of 30
22. Question
Which Django form field is used for file uploads?
CorrectIncorrect -
Question 23 of 30
23. Question
What does the select_related() method do in Django ORM?
CorrectIncorrect -
Question 24 of 30
24. Question
Which Django setting is used to configure the database connection?
CorrectIncorrect -
Question 25 of 30
25. Question
What is the purpose of Django’s reverse() function?
CorrectIncorrect -
Question 26 of 30
26. Question
Which Django feature allows you to optimize database queries by reducing the number of SQL queries?
CorrectIncorrect -
Question 27 of 30
27. Question
What is the purpose of Django’s Q objects?
CorrectIncorrect -
Question 28 of 30
28. Question
Which Django feature allows you to create custom template tags and filters?
CorrectIncorrect -
Question 29 of 30
29. Question
What is the difference between Django’s Class-Based Views (CBV) and Function-Based Views (FBV)?
CorrectIncorrect -
Question 30 of 30
30. Question
What will happen when the following Django view is executed?
from django.db import transaction
from django.http import HttpResponse
@transaction.atomic
def create_order(request):
order = Order.objects.create(user=request.user)
Payment.objects.create(order=order, amount=’invalid’) # Error
return HttpResponse(“Order placed”)
CorrectIncorrect
