1.
How do you automatically associate page events and methods in the ASP.NET page framework?
Correct Answer
A. AutoEventWireup attribute of the Page directive is set to true
Explanation
When the AutoEventWireup attribute of the Page directive is set to true, the ASP.NET page framework automatically associates page events and methods. This means that the framework will automatically wire up the event handlers for the events defined in the page's code-behind file without the need for explicit event handler registration in the markup. This simplifies the development process by reducing the amount of manual code that needs to be written.
2.
A collection of property settings that allow you to define the look of pages and controls is known as?
Correct Answer
B. Theme
Explanation
A theme is a collection of property settings that allow you to define the look of pages and controls. It provides a consistent and unified design for a website by specifying colors, fonts, and other visual elements. With a theme, you can easily apply a predefined set of styles and customize the appearance of your website without having to modify individual pages or controls. This helps in maintaining a consistent and professional look across the entire website.
3.
ASP.NET separates the HTML output from program logic using a feature named as?
Correct Answer
B. Code-behind
Explanation
ASP.NET separates the HTML output from program logic using a feature named as code-behind. This feature allows developers to write the program logic in a separate file, called the code-behind file, while keeping the HTML markup separate in the front-end file. This separation of concerns helps in maintaining clean and organized code, making it easier to manage and modify the application.
4.
In ASP.NET in form page the object which contains the user name is ______ ?
Correct Answer
A. Page.User.Identity
Explanation
The correct answer is Page.User.Identity. In ASP.NET, the object that contains the user's name is accessed through the Page.User.Identity property. This property provides information about the user's identity, including their name, authentication type, and whether they are authenticated or not. The Page.User.IsInRole property is used to check if the user belongs to a specific role, and Page.User.Name does not exist in ASP.NET. Therefore, the correct object to access the user's name is Page.User.Identity.
5.
WSDL stands for _________________ ?
Correct Answer
C. Web Services Description Language
Explanation
WSDL stands for Web Services Description Language. WSDL is an XML-based language used to describe the functionalities of a web service. It provides a standardized way for different applications to communicate with each other over a network. With the help of WSDL, developers can define the operations, input/output parameters, and the structure of the messages exchanged between the client and the server. This allows for interoperability between different platforms and programming languages, making it easier to integrate and consume web services.
6.
The type of code found in Code-Behind class is ________ ?
Correct Answer
A. Server-side code
Explanation
The code found in the Code-Behind class is server-side code. In the Code-Behind model, the code is separated into two parts - the user interface (UI) code in the front-end and the server-side code in the back-end. The server-side code is responsible for processing the logic, handling data, and interacting with the server, while the client-side code is responsible for the UI and user interactions. Therefore, the correct answer is server-side code.
7.
The actual work process of ASP.NET is taken care by _____________?
Correct Answer
C. Aspnet_wp.exe
Explanation
The correct answer is aspnet_wp.exe. This is because aspnet_wp.exe is the worker process responsible for handling ASP.NET requests and managing the execution of ASP.NET applications. It is responsible for processing incoming requests, managing application pools, and maintaining the state of the application. inetinfo.exe is the Internet Information Services (IIS) process that handles HTTP requests, while aspnet_isapi.dll is an ISAPI extension that allows IIS to pass ASP.NET requests to the ASP.NET worker process. Therefore, the correct answer is aspnet_wp.exe.
8.
The GridView control in ASP.NET has which of the following features?
Correct Answer
C. Both A and B
Explanation
The GridView control in ASP.NET has both automatic data binding and automatic paging features. Automatic data binding allows the control to bind to a data source and display the data automatically. Automatic paging allows the control to divide the data into multiple pages and display them automatically, providing a convenient way to navigate through large amounts of data.