Q. Which option allows a field to be used as a primary key?

  • (A) key=True
  • (B) unique=True
  • (C) primary=True
  • (D) primary_key=True
πŸ’¬ Discuss
βœ… Correct Answer: (D) primary_key=True
Explanation: primary_key=True makes the field the primary key of the model.
Explanation by: Mr. Dubey
primary_key=True makes the field the primary key of the model.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
101
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate