Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : django - MODELS AND DATABASES
MODELS AND DATABASES
00:00:00
English
Hindi
Question No# :
01
out of 5
What are the features available in Django web framework?
What are the features available in Django web framework?
A.
Admin Interface (CRUD)
Admin Interface (CRUD)
B.
Templating
Templating
C.
Form handling
Form handling
D.
All of the above
All of the above
Question No# :
02
out of 5
What is the Django command to view a database schema of an existing (or legacy) database?
What is the Django command to view a database schema of an existing (or legacy) database?
A.
manage.py inspect
manage.py inspect
B.
manage.py legacydb
manage.py legacydb
C.
manage.py inspectdb
manage.py inspectdb
D.
None of the above
None of the above
Question No# :
03
out of 5
How do you concatenate two QuerySets into one list?
How do you concatenate two QuerySets into one list?
A.
result = list(query_set_1 | query_set_2)
result = list(query_set_1 | query_set_2)
B.
from itertools import chain result = list(chain(query_set_1, query_set_2))
from itertools import chain result = list(chain(query_set_1, query_set_2))
C.
from django.db.models import Q result = Q(query_set_1) | Q(query_set_1)
from django.db.models import Q result = Q(query_set_1) | Q(query_set_1)
D.
result = query_set_1 + query_set_2
result = query_set_1 + query_set_2
Question No# :
04
out of 5
In Django how would you retrieve all the 'User' records from a given database?
In Django how would you retrieve all the 'User' records from a given database?
A.
User.objects.all()
User.objects.all()
B.
Users.objects.all()
Users.objects.all()
C.
User.all_records()
User.all_records()
D.
User.object.all()
User.object.all()
Question No# :
05
out of 5
What are Migrations in Django?
What are Migrations in Django?
A.
They are files saved in migrations directory.
They are files saved in migrations directory.
B.
They are created when you run makemigrations command.
They are created when you run makemigrations command.
C.
Migrations are files where Django stores changes to your models.
Migrations are files where Django stores changes to your models.
D.
All of the above
All of the above
Latest Current Affairs 2024
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2024
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz