What is the purpose of the Django ORM?

What is the purpose of the Django ORM?

a) To handle file uploads
b) To map database tables to Python objects and query the database
c) To manage the settings file
d) To provide static files to the frontend

Answer:

b) To map database tables to Python objects and query the database

Explanation:

The Django ORM (Object-Relational Mapping) allows developers to interact with the database using Python objects instead of writing raw SQL queries.

Reference:

Django Quiz – MCQ Questions and Answers

Scroll to Top