1. Home
  2. Computer Science MCQs
  3. Django
  4. What is the purpose of Django models?

Added 31 Jan 2024

What is the purpose of Django models?

  1. Handling HTTP requests
  2. Representing database tables as Python objects Correct answer
  3. Defining URL patterns
  4. Creating user interfaces

Correct answer

B. Representing database tables as Python objects

12 views

MCQSEXAM

Explanation

Django models are used to define the structure of database tables as Python classes.

Reference

https://www.w3schools.com/django/index.php

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Django MCQs

Practise all Django MCQs

Similar MCQs