Which of the following classes provides objects that are constructed automatically for every request…?

Which of the following classes provides objects that are constructed automatically for every request
given to an ASP.NET application and destroyed when the request has been completed?

Which of the following classes provides objects that are constructed automatically for every request
given to an ASP.NET application and destroyed when the request has been completed?

A.
HttpResponse

B.
HttpContext

C.
HttpServletUtility

D.
HttpRequest

Explanation:
The HttpContext class provides objects that are constructed automatically for every request given to
an ASP.NET application and destroyed when the request has been completed.

Answer D is incorrect. It is used to enable ASP.NET to read the HTTP values sent by a client during a
Web request.

Answer A is incorrect. It is used to encapsulate HTTP-response information from an ASP.NET
operation.

Answer C is incorrect. It is used to provide helper methods for processing Web requests.



Leave a Reply 0

Your email address will not be published. Required fields are marked *