C) MEDIA_URL D) FORM_MEDIA Correct Ans: C) MEDIA_URL 6. What is the purpose of {% block content %} in Django templates? A) To define variables B) To display form fields C) To create editable sections in child templates D) To render media files Correct Ans: C) To create editable sections in child templates 7. Which Django component allows you to show success/error messages after a form submission? A) Middleware B) CSRF Protection C) Message Framework D) Session Engine Correct Ans: C) Message Framework 8. What is template inheritance in Django? A) Importing templates from another project B) Using Python classes in templates C) Reusing a base template layout D) Embedding CSS in templates Correct Ans: C) Reusing a base template layout 9. In Django Class-Based Views, which class is typically used to create new objects? A) TemplateView B) UpdateView C) CreateView D) DeleteView Correct Ans: C) CreateView 10. What is the advantage of reusable templates for forms in Django?

PYB3M19Quiz - Page 2 PYB3M19Quiz Page 1 Page 3