Q. What does the `get_object_or_404()` function do?
β
Correct Answer: (B)
Redirects to 404 page if object is not found
Explanation: `get_object_or_404()` returns the object if it exists, otherwise raises a 404 error.