πŸ“Š Django
Q. Which model field is suitable for a fixed set of choices?
  • (A) CharField with max_length
  • (B) ChoiceField
  • (C) CharField with choices
  • (D) StringField
πŸ’¬ Discuss
βœ… Correct Answer: (C) CharField with choices

Explanation: CharField with the choices attribute is used for predefined values.

Explanation by: Rakesh Yadav
CharField with the choices attribute is used for predefined values.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
66
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Rakesh Yadav
Publisher
πŸ“ˆ
81%
Success Rate