Sail E0 Webinar

MCQs

Total Questions : 15 | Page 2 of 2 pages
Question 11. The architecture of Django consists of?
  1.    Models
  2.    Views
  3.    Templates
  4.    All of these
 Discuss Question
Answer: Option D. -> All of these




Question 12. What are the caching strategies in Django?
  1.    File sytem caching
  2.    In-memory caching
  3.    Both A and B
  4.    None
 Discuss Question
Answer: Option C. -> Both A and B




Question 13. What is the purpose of settings.py?
  1.    To configure settings for the Django project
  2.    To configure settings for an app
  3.    To set the date and time on the server
  4.    To sync the database schema
 Discuss Question
Answer: Option A. -> To configure settings for the Django project




Question 14. In Django how would you retrieve all the 'User' records from a given database?
  1.    User.objects.all()
  2.    Users.objects.all()
  3.    User.all_records()
  4.    User.object.all()
 Discuss Question
Answer: Option A. -> User.objects.all()




Question 15. What does of Django field class types do?
  1.    The database column type
  2.    The default HTML widget to avail while rendering a form field
  3.    The minimal validation requirements used in Django admin
  4.    All of the above
 Discuss Question
Answer: Option D. -> All of the above




Latest Videos

Latest Test Papers