Q. What does the `reverse()` function in Django do?

  • (A) Reverse a string
  • (B) Reverse a queryset
  • (C) Return a URL path by its view name
  • (D) Reverse the order of a list
πŸ’¬ Discuss
βœ… Correct Answer: (C) Return a URL path by its view name
Explanation: `reverse()` returns the URL of a view by using its name.
Explanation by: Mr. Dubey
`reverse()` returns the URL of a view by using its name.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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