Multiple choice technology programming languages

What is the use of "GLOBAL.ASAX" file?

  1. execute ASP.NET application level events and setting application-level variables

  2. setting application-level variables.

  3. execute ASP.NET application level events.

  4. All the above

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

GLOBAL.ASAX is the ASP.NET application file that handles application-level events like Application_Start, Application_End, Session_Start, and Error events. It's also where you can define application-wide variables and settings.

AI explanation

Global.asax (the ASP.NET Application file) is used both to handle application-level and session-level events (like Application_Start, Session_Start) and to store/set application-level state and variables (via the Application object). So the correct, complete description combines both functions, which is exactly what option (a) states. The narrower options (b) and (c) each capture only half of Global.asax's purpose, making them incomplete rather than fully correct.