What is the base class from which all Web forms inherit?

  1. Master Page

  2. Page Class

  3. Session Class

  4. None of the Above


Correct Option: B

AI Explanation

To answer this question, you need to understand the concept of Web forms in web development.

The correct answer is B) Page Class.

Explanation: Web forms in web development are created using ASP.NET technology. The Page Class is the base class from which all Web forms inherit in ASP.NET. This class provides the basic functionality and properties required for creating a web form. It contains methods and properties that allow you to interact with the user, handle events, and manage the lifecycle of the page.

Option A) Master Page - This option is incorrect because the Master Page is a concept in ASP.NET that allows you to create a consistent layout and design for multiple web pages. It is not the base class for Web forms.

Option C) Session Class - This option is incorrect because the Session Class is used to store and retrieve user-specific data across multiple web pages. It is not the base class for Web forms.

Option D) None of the Above - This option is incorrect because the correct answer is B) Page Class, which is the base class for all Web forms in ASP.NET.

Therefore, the correct answer is B) Page Class.

Find more quizzes: