Q. Which field is automatically added by Django when no primary key is specified?

  • (A) AutoKeyField
  • (B) AutoField
  • (C) PrimaryKeyField
  • (D) IDField
πŸ’¬ Discuss
βœ… Correct Answer: (B) AutoField
Explanation: Django automatically adds an AutoField as the primary key if none is defined.
Explanation by: Rakesh Yadav
Django automatically adds an AutoField as the primary key if none is defined.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
79
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rakesh Yadav
Publisher
πŸ“ˆ
83%
Success Rate