最新的Microsoft Upgrade your MCPD: Web Developer 4 to MCSD: Web Applications - 70-492免費考試真題
You are developing an ASP.NET MVC application. The application is an order processing system that uses the ADO.NET Entity Framework against a SQL Server database. It has a controller that loads a page that displays all orders along with customer information. Lazy loading has been disabled. The Order class is shown below.

You need to return the orders and customer information in a single round trip to the database. Which code segment should you use?


You need to return the orders and customer information in a single round trip to the database. Which code segment should you use?

正確答案: B
You are developing an ASP.NET MVC application in Visual Studio 2012. The application supports multiple
cultures.
The application contains three resource files in the Resources directory:
ProductDictionary.resx
ProductDictionary.es.resx
ProductDictionary.fr.resx Each file contains a public resource named Currency with the localized currency symbol. The application is configured to set the culture based on the client browser settings. The application contains a controller with the action defined in the following code segment. (Line numbers are included for reference only.)

You need to set ViewBag.LocalizedCurrency to the localized currency contained in the resource files. Which code segment should you add to the action at line 03?
cultures.
The application contains three resource files in the Resources directory:
ProductDictionary.resx
ProductDictionary.es.resx
ProductDictionary.fr.resx Each file contains a public resource named Currency with the localized currency symbol. The application is configured to set the culture based on the client browser settings. The application contains a controller with the action defined in the following code segment. (Line numbers are included for reference only.)

You need to set ViewBag.LocalizedCurrency to the localized currency contained in the resource files. Which code segment should you add to the action at line 03?
正確答案: B
You need to modify the application to meet the productId requirement. What should you do?
正確答案: B
The GetDealPrice method must be called by using Ajax. You need to get the price of a product by using the GetDealPrice method of the ProductController. Which code segment should you use? (Each correct answer presents a complete solution. Choose all that apply.)


正確答案: A,D
You need to modify the ExecuteCommandProcedure() method to meet the technical requirements. Which code segment should you use?


正確答案: B
You are developing an ASP.NET MVC application that will be deployed to servers on multiple networks. The application must be compatible with multiple browsers. You must track the page number that the user is viewing in search results. You need to program the location for storing state information. Where should you persist state information?
正確答案: B
You are developing a WCF service that compares several data sources. The service takes a long time to complete. The service must meet the following requirements:
* The client must be able to continue processing while the service is running.
* The service must initiate communication with the client application when processing is complete.
You need to choose a message pattern to meet the requirements. Which message pattern should you choose?
* The client must be able to continue processing while the service is running.
* The service must initiate communication with the client application when processing is complete.
You need to choose a message pattern to meet the requirements. Which message pattern should you choose?
正確答案: D
You need to implement the requirements for handling IIS errors. What should you do?


正確答案: B
You are adding a new REST service endpoint to the FlightDataController controller that returns the total number of seats for each airline. You need to write a LINQ to Entities query to extract the required data. Which code segment should you use?


正確答案: D