Q. Which method is used to retrieve a single object or raise a 404 error if not found?
β
Correct Answer: (D)
get_object_or_404()
Explanation: `get_object_or_404()` is a shortcut that retrieves an object or raises an Http404 exception.