Microsoft Designing & Developing Web Apps Using MS .NET Frmwk 4 Sample Questions:
1. You need to design a deployment solution for the rewritten Web application.
Which approach should you recommend?
A) Add the rewritten Web application to an application pool that contains only ASP.NET 4 Web applications.
B) Compile the rewritten Web application and deploy the compiled library to the global assembly cache.
C) Deploy the rewritten Web application to the existing file path on each server in the Web farm.
D) Add the rewritten Web application to the same application pool as Web applications written in ASP.NET 2.0, ASP.NET 3.0, and ASP.NET 3.5.
2. You are conducting an architectural review of an existing ASP.NET Web application. The Web application uses only full-page postbacks, which degrades its performance.
You have the following requirements:
Extend existing controls by using AJAX functionality.
Reduce the size of postbacks without modifying the existing controls.
You need to recommend an approach for meeting the requirements.
What should you recommend?
A) Create a user control that implements the IAsyncActionlnvoker interface.
B) Create a server control derived from the ExtenderControl class.
C) Create a server control derived from the Substitution class.
D) Create a user control that implements the IExtenderProvider interface.
3. You are designing a Windows Communication Foundation (WCF) service. The WCF service will support a common data access strategy for an ASP.NET 1.1 Web application and an ASP.NET 4 Web application.
You have the following requirements:
You need to recommend an endpoint and binding strategy for the WCF service.
What should you recommend?
A) multiple endpoints using BasicHttpBinding and WSHttpBinding
B) multiple endpoints using NetTcpBinding and WSHttpBinding
C) a single endpoint using NetTcpBinding
D) a single endpoint using NetMsmqBinding
4. You are designing the user interface for an ASP.NET Web application. The Web application allows several departments to personalize the style of their sections of the Web application.
All departmental section styles derive from the core styles of the Web application and can only append to the Web application's core styles.
The departmental master pages inherit from the Web application's master page.
You need to ensure that core CSS styles appear En all pages of the Web application.
Which approach should you recommend?
A) Add a Content Place Holder containing the CSS styles to the Web application's master page
B) Link from the Web application's master page to a css.ascx file containing the CSS styles.
C) Add a master.css file containing the CSS styles to the Web application.
D) Link from the Web application's master page to a .css file containing the CSS styles.
5. You need to design a solution for calling a server-side method of the code-behind file from JavaScript. Which approach should you recommend?
A) Configure the server-side method to return a JsonResult.
B) Use Page Methods.
C) Use an Update Panel control.
D) Use an Update Progress control.
Solutions:
Question # 1 Answer: A | Question # 2 Answer: B | Question # 3 Answer: A | Question # 4 Answer: D | Question # 5 Answer: B |