Multiple choice technology web technology

What ASP.NET object is used to get information about the web servers hostname?

  1. The Session object.

  2. The Application object.

  3. The Response object.

  4. The Server object

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The Server object provides access to server-related information and utilities. To get the web server's hostname, you would use Server.MachineName or access server variables through ServerVariables. The Session object (option A) stores user-specific data, Application (option B) stores application-wide state, and Response (option C) sends output to the client.