πŸ“Š Django
Q. Which method returns a single object or raises an exception if it doesn't exist?
  • (A) filter()
  • (B) all()
  • (C) get()
  • (D) first()
πŸ’¬ Discuss
βœ… Correct Answer: (C) get()

Explanation: get() returns a single object matching the query or raises DoesNotExist error.

Explanation by: Rakesh Yadav
get() returns a single object matching the query or raises DoesNotExist error.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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