Skip to content

Quiz

1. Django adds a model manager to the every newly created model. What is the name of that model manager ?

a. models
b. objects
c. manager
d. object
Answer b. objects

2. What is the name of the method which is used to create a new object using model manager "objects" ?

a. add
b. create
c. save
d. craetes
Answer b. create

3. Django adds a primary key field when we don't specify the primary key of our model. What is the name of that primary key field ?

a. Django doesn't adds primary key field by default.
b. sn
c. pk
d. id
Answer d. id