.Net Framework Web Client ASP.Net Part 1

Take This Test

Section 1

1) You are deploying a Web site to a server managed by a hosting company. The only access you have to the server is through FTP. You need to precompile and deploy the Web site without its source files. What should you do?
2) You load an XmlDocument named doc with the following XML. You need to use an X Path query string to select the two book nodes. Which code segment should you use?
3) You create a master page named PageBases.master. The master page contains a Label control named lblTitle. You create a content page that references the master page. You need to change the Text property of the master page's lblTitle control from the content page. Which code segment should you use?
4) You create a Web Form. The Web Form allows users to recover their passwords. You add a PasswordRecovery server control by using the following code segment.
<asp:PasswordRecovery runat="server"/>
You need to ensure that the server control generates a new password and sends it by e-mail to the users e?mail address. Which two actions should you perform?
5) You create a Web application to process XML documents. The Web application receives XML document files from several sources, reads them, and stores them in a Microsoft SQL Server database. The Web application parses all incoming data files to ensure that they conform to an XML schema. You need to find all validation errors in the XML document. What should you do?
6) You create a Web site that is for members only. The behavior of the Web site changes according to the role of the user. The Web site uses the ASP.NET Membership control for creation of user accounts. You need to find out whether a user is a member of a particular role. What should you do?
7) You create a master page named PageBase.master. The master page contains a Label control named lblTitle. You create a content page that references the master page. You need to change the Text property of the master page's lblTitle control from the content page. Which code segment should you use?
8) You create a Web application. The Web application enables users to change fields in their personal profiles. Some of the changes are not persisting in the database. You need to raise a custom event to track each change that is made to a user profile so that you can locate the error. Which event should you use?
9) You develop a Web application. Your application contains two settings in the Web.config file. You deploy your application to production. You need to modify the application settings in the production environment without manually editing the XML markup in the Web.config file. What should you do?
10) You create a Web Form with several UI elements on it. During a code review, you realize that some of the UI elements can be grouped into user controls. You need to create a Web control to group the UI elements that do not require server-side processing. Doing so will enable you to programmatically add or remove the UI elements from the page. You want to maintain the UI elements' style properties. What should you do?

Take This Test

Also check these ASP.Net test papers, these are one of most attempted test paper in this category.